Web-based responsive document annotation tool
activeannoservice / annotationdefinition.generator.documenttarget / DetectedLanguageGenerator
class DetectedLanguageGenerator :
AnnotationGenerator
AnnotationGenerator which detects the language using the “Lingua” library, storing the annotation under the defined key as the ISO 639-1 Code (in upper case). The “unknown” key from Lingua is defined as the string “UNKNOWN”
Name | Summary |
---|---|
<init> | AnnotationGenerator which detects the language using the “Lingua” library, storing the annotation under the defined key as the ISO 639-1 Code (in upper case). The “unknown” key from Lingua is defined as the string “UNKNOWN”DetectedLanguageGenerator(id: String , annotationDefinitionID: String , name: String , description: String , input: AnnotationStepKey , possibleLanguagesIso6391: LanguagesIso639_1, createdTimestamp: Long = System.currentTimeMillis()) |
Name | Summary |
---|---|
possibleLanguagesIso6391 | var possibleLanguagesIso6391: LanguagesIso639_1 |
Name | Summary |
---|---|
generateAnnotation | suspend fun generateAnnotation(document: Document , generatedAnnotationData: GeneratedAnnotationData ): Annotation <*> |
updateModel | Call this to update the mutable fields of an AnnotationGeneratorfun updateModel(newAnnotationGenerator: AnnotationGenerator ): Unit |