public Feature newCategory ( String id , String lemma , List < Span < Term > > references ) { idManager . updateCounter ( AnnotationType . CATEGORY , id ) ; Feature newCategory = new Feature ( id , lemma , references ) ; annotationContainer . add ( newCategory , Layer . CATEGORIES , AnnotationType . CATEGORY ) ; return newCategory ; }
Creates a new category . It receives it s ID as an argument . The category is added to the document .