Class 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
      boolean contains​(java.lang.String mentionText, java.lang.String label)
      checks whether an entity mention is contained in the negative list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NegativeList

        public NegativeList​(java.io.File myFile)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • NegativeList

        public NegativeList​(java.io.InputStream is)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • 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 annotation
        label - the label assigned to this entity annotation
        Returns:
        true if negative list contains mentionText (with label)