picslate.paragraphs.Paragraphs
- class picslate.paragraphs.Paragraphs(text: str, pos: (<class 'int'>, <class 'int'>, <class 'int'>, <class 'int'>), from_lang: str, to_lang: str, words: ~typing.Optional[list[object]] = None, corrector: bool | str = False, translator: str = 'auto')[source]
Bases:
objectParagraphs.
- __init__(text: str, pos: (<class 'int'>, <class 'int'>, <class 'int'>, <class 'int'>), from_lang: str, to_lang: str, words: ~typing.Optional[list[object]] = None, corrector: bool | str = False, translator: str = 'auto') None[source]
__init__. Object which comport paragraphs text and meta data
- Parameters
text (str) – paragraph text
pos ((int, int, int, int)) – paragraph position
from_lang (str) – lang of the paragraph
to_lang (str) – lang to be translated
words (list[object] | None) – words inside paragraph
corrector (bool | str | callable) – corrector to be used
translator (str | callable) – translator to be used
- Return type
None
Methods
__init__(text, pos, from_lang, to_lang[, ...])__init__.
Attributes
text_translated.
- property text_translated: str
text_translated.
- Return type
str