Package de.julielab.jcore.ae.jnet.uima
Class NegativeList
- java.lang.Object
-
- de.julielab.jcore.ae.jnet.uima.NegativeList
-
public class NegativeList extends Object
-
-
Constructor Summary
Constructors Constructor Description NegativeList(File myFile)NegativeList(InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String mentionText, String label)checks whether an entity mention is contained in the negative list.
-
-
-
Constructor Detail
-
NegativeList
public NegativeList(File myFile) throws IOException
- Throws:
IOException
-
NegativeList
public NegativeList(InputStream is) throws IOException
- Throws:
IOException
-
-
Method Detail
-
contains
public boolean contains(String mentionText, 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)
-
-