Move files
This commit is contained in:
parent
79ddc5c7df
commit
8b004ec46d
233 changed files with 117 additions and 2394 deletions
30
src/great_ai/utilities/publication_tei/models/element.py
Normal file
30
src/great_ai/utilities/publication_tei/models/element.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
from typing import List, Literal, Union
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from .text import Text
|
||||
|
||||
|
||||
class Title(BaseModel):
|
||||
text: Text
|
||||
|
||||
|
||||
class Paragraph(BaseModel):
|
||||
sentences: List[Text]
|
||||
|
||||
|
||||
MetaType = Literal[
|
||||
"abstract_start",
|
||||
"abstract_end",
|
||||
"acknowledgements_start",
|
||||
"acknowledgements_end",
|
||||
"annex_start",
|
||||
"annex_end",
|
||||
]
|
||||
|
||||
|
||||
class Meta(BaseModel):
|
||||
meta_type: MetaType
|
||||
|
||||
|
||||
Element = Union[Title, Paragraph, Meta]
|
||||
Loading…
Add table
Add a link
Reference in a new issue