public CLink newCLink(Predicate from, Predicate to) { String newId = idManager.clinks.getNext(); CLink newCLink = new CLink(newId, from, to); annotationContainer.add(newCLink); return newCLink; }
/** * Creates a LinkedEntity object and add it to the document * * @param term the Term of the coreference. * @return a new factuality. */ public LinkedEntity newLinkedEntity(Span<WF> span) { String newId = idManager.linkedentities.getNext(); LinkedEntity linkedEntity = new LinkedEntity(newId, span); annotationContainer.add(linkedEntity); return linkedEntity; }
/** * Creates a SSTspan object and add it to the document * * @param term the Term of the coreference. * @return a new factuality. */ public SSTspan newSST(Span<Term> span) { String newId = idManager.ssts.getNext(); SSTspan sst = new SSTspan(newId, span); annotationContainer.add(sst); return sst; }
/** * Creates a Topic object and add it to the document * * @param term the Term of the coreference. * @return a new factuality. */ public Topic newTopic() { String newId = idManager.topics.getNext(); Topic t = new Topic(newId); annotationContainer.add(t); return t; }
public String insertProperty(Feature property) { String newId = idManager.properties.getNext(); property.setId(newId); annotationContainer.add(property); return newId; }
public String insertOpinion(Opinion opinion) { String newId = idManager.opinions.getNext(); opinion.setId(newId); annotationContainer.add(opinion); return newId; }
/** * Creates a new coreference. It assigns an appropriate ID to it. The Coref is added to the document. * * @param references different mentions (list of targets) to the same entity. * @return a new coreference. */ public Coref newCoref(List<Span<Term>> mentions) { String newId = idManager.corefs.getNext(); Coref newCoref = new Coref(newId, mentions); annotationContainer.add(newCoref); return newCoref; }
/** Creates a new timeExpressions. It assigns an appropriate ID to it. The Coref is added to the document. * @param references different mentions (list of targets) to the same entity. * @return a new timex3. */ public Timex3 newTimex3(String type) { String newId = idManager.timex3s.getNext(); Timex3 newTimex3 = new Timex3(newId, type); annotationContainer.add(newTimex3); return newTimex3; }
/** * Creates a new opinion object. It assigns an appropriate ID to it. The opinion is added to the document. * * @return a new opinion. */ public Opinion newOpinion() { String newId = idManager.opinions.getNext(); Opinion newOpinion = new Opinion(newId); annotationContainer.add(newOpinion); return newOpinion; }
public String insertEntity(Entity entity) { String newId = idManager.entities.getNext(); entity.setId(newId); annotationContainer.add(entity); return newId; }
public String insertWF(WF wf) { String newId = idManager.wfs.getNext(); wf.setId(newId); annotationContainer.add(wf); return newId; }
public String insertChunk(Chunk chunk) { String newId = idManager.chunks.getNext(); chunk.setId(newId); annotationContainer.add(chunk); return newId; }
public String insertTimex3(Timex3 timex3) { String newId = idManager.timex3s.getNext(); timex3.setId(newId); annotationContainer.add(timex3); return newId; }
public String insertCategory(Feature category) { String newId = idManager.categories.getNext(); category.setId(newId); annotationContainer.add(category); return newId; }
/** * Creates a new srl predicate. It assigns an appropriate ID to it. The predicate is added to the document. * * @param span span containing all the targets of the predicate * @return a new predicate */ public Predicate newPredicate(Span<Term> span) { String newId = idManager.predicates.getNext(); Predicate newPredicate = new Predicate(newId, span); annotationContainer.add(newPredicate); return newPredicate; }
public NonTerminal newNonTerminal(String id, String label) { NonTerminal tn = new NonTerminal(id, label); String newEdgeId = idManager.edges.getNext(); tn.setEdgeId(newEdgeId); return tn; }
public Terminal newTerminal(String id, Span<Term> span) { Terminal tn = new Terminal(id, span); String newEdgeId = idManager.edges.getNext(); tn.setEdgeId(newEdgeId); return tn; }
public String insertCoref(Coref coref) { String newId = idManager.corefs.getNext(); coref.setId(newId); annotationContainer.add(coref); return newId; }
public SSTspan newSST(Span<Term> span, String type, String label) { String newId = idManager.ssts.getNext(); SSTspan sst = new SSTspan(newId, span); sst.setLabel(label); sst.setType(type); annotationContainer.add(sst); return sst; }