ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / annotationdefinition / TagSetAnnotationDefinition

TagSetAnnotationDefinition

class TagSetAnnotationDefinition : AnnotationDefinition

Annotation definition which requests the annotator to chose from a set of predefined TagSetOptions

Types

Name Summary
TagSetOption Option for a tag set.data class TagSetOption

Constructors

Name Summary
<init> Annotation definition which requests the annotator to chose from a set of predefined TagSetOptionsTagSetAnnotationDefinition(id: AnnotationID, name: String, shortName: String?, createdTimestamp: Long = System.currentTimeMillis(), minNumberOfTags: Int = 1, maxNumberOfTags: Int? = null, options: List<TagSetOption>)

Properties

Name Summary
maxNumberOfTags var maxNumberOfTags: Int?
minNumberOfTags var minNumberOfTags: Int
options var options: List<TagSetOption>

Functions

Name Summary
transformGeneratedAnnotation Can transform a generated annotation into a annotation result annotation. For example, apply minimum probabilities or max. number of answers given the annotationDefinitionfun transformGeneratedAnnotation(annotation: Annotation<*>): Annotation<*>
updateModel Update the database model of an instance from a new instance. This should be used to control which fields are updatable through the API and which are not.fun updateModel(newAnnotationDefinition: AnnotationDefinition): Unit
validateAnnotation Validate an annotation based on the defined constraints, needs to be implemented by every subclass.fun validateAnnotation(annotations: AnnotationMap, target: Target, locale: Locale?): ValidationError?