public Predicate newPredicate ( String id , Span < Term > span ) { idManager . updateCounter ( AnnotationType . PREDICATE , id ) ; Predicate newPredicate = new Predicate ( id , span ) ; annotationContainer . add ( newPredicate , Layer . SRL , AnnotationType . PREDICATE ) ; return newPredicate ; }
Creates a new srl predicate . It receives its ID as an argument . The predicate is added to the document .