Package de.julielab.jcore.ae.jnet.uima
Class NegativeList
- java.lang.Object
-
- de.julielab.jcore.ae.jnet.uima.NegativeList
-
public class NegativeList extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NegativeList(java.io.File myFile)NegativeList(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.String mentionText, java.lang.String label)checks whether an entity mention is contained in the negative list.
-
-
-
Method Detail
-
contains
public boolean contains(java.lang.String mentionText, java.lang.String label)checks whether an entity mention is contained in the negative list.- Parameters:
mentionText- the text covered by the entity annotationlabel- the label assigned to this entity annotation- Returns:
- true if negative list contains mentionText (with label)
-
-