lilt-python

API bindings for the Lilt REST API.

View the Project on GitHub lilt/lilt-python

DocumentWithSegments

A Document is a collection of zero or more Segments.

Properties

Name Type Description Notes
id int A unique number identifying the Document. [optional]
project_id int A unique number identifying the Project. [optional]
srclang str An ISO 639-1 language identifier. [optional]
trglang str An ISO 639-1 language identifier. [optional]
name str The document name. [optional]
import_in_progress bool True if the document is currently being imported [optional]
import_succeeded bool True if the import process succeeded. [optional]
import_error_message str Error message if `import_succeeded=false` [optional]
export_in_progress bool True if the document is currently being exported for download [optional]
export_succeeded bool True if the export process succeeded. [optional]
export_error_message str Error message if `export_succeeded=false` [optional]
is_pretranslating bool True if the document is currently being pretranslated. [optional]
status DocumentWithoutSegmentsStatus   [optional]
translator_email str The email of the assigned translator. [optional]
reviewer_email str The email of the assigned reviewer. [optional]
created_at int Time at which the object was created. Measured in seconds since the Unix epoch. [optional]
updated_at int Time at which the object was created. Measured in seconds since the Unix epoch. [optional]
is_review_complete bool Document review status. [optional]
segments List[Segment] A list of Segments. [optional]

Example

from lilt.models.document_with_segments import DocumentWithSegments

# TODO update the JSON string below
json = "{}"
# create an instance of DocumentWithSegments from a JSON string
document_with_segments_instance = DocumentWithSegments.from_json(json)
# print the JSON string representation of the object
print(DocumentWithSegments.to_json())

# convert the object into a dict
document_with_segments_dict = document_with_segments_instance.to_dict()
# create an instance of DocumentWithSegments from a dict
document_with_segments_from_dict = DocumentWithSegments.from_dict(document_with_segments_dict)

[Back to Model list] [Back to API list] [Back to README]