ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / annotationdefinition.generator.documenttarget / DetectedLanguageGenerator

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”

Constructors

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())

Properties

Name Summary
possibleLanguagesIso6391 var possibleLanguagesIso6391: LanguagesIso639_1

Functions

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