pt.uminho.anote2.relation.core.relationModels
Class RelationModelSimple
java.lang.Object
pt.uminho.anote2.relation.core.relationModels.RelationModelDefault
pt.uminho.anote2.relation.core.relationModels.RelationModelSimple
- All Implemented Interfaces:
- IRelationModel
public class RelationModelSimple
- extends RelationModelDefault
- implements IRelationModel
- Author:
- Hugo Costa
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RelationModelSimple
public RelationModelSimple(ICorpus corpus,
IIEProcess nerProcess,
IGatePosTagger postagger)
getRelationTerminations
public java.util.Set<java.lang.String> getRelationTerminations()
- Description copied from interface:
IRelationModel
- Method that return a list of char that possible ends a relation
Examples . , :
This endRelations are used in posTagger
- Specified by:
getRelationTerminations in interface IRelationModel
- Returns:
extractSentenceRelation
public java.util.List<IEventAnnotation> extractSentenceRelation(java.util.List<IEntityAnnotation> semanticLayer,
IGenericPair<java.util.List<IVerbInfo>,java.util.List<java.lang.Long>> sintatic)
- Description copied from interface:
IRelationModel
- This method receive a information about posTagging ( Sintatic LAyer) verbs,verb chunker,
endRelations connectors.
and information about biological entities ( Semantic Layer ) and return
all relations of the sentence
- Specified by:
extractSentenceRelation in interface IRelationModel
- Parameters:
semanticLayer - semantic annotationssintatic - sintatic Annotations
- Returns:
- List of relations
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object