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;
    }
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.
@param id the ID of the predicate
@param span span containing the targets of the predicate
@return a new predicate