Class RegexNameFinder

    • Method Detail

      • find

        public Span[] find​(String[] tokens)
        Description copied from interface: TokenNameFinder
        Generates name tags for the given sequence, typically a sentence, returning token spans for any identified names.
        Specified by:
        find in interface TokenNameFinder
        Parameters:
        tokens - an array of the tokens or words of the sequence, typically a sentence.
        Returns:
        an array of spans for each of the names identified.
      • find

        public Span[] find​(String text)
        NEW. This method removes the need for tokenization, but returns the Span with character indices, rather than word.
        Parameters:
        text -
        Returns:
      • clearAdaptiveData

        public void clearAdaptiveData()
        Description copied from interface: TokenNameFinder
        Forgets all adaptive data which was collected during previous calls to one of the find methods. This method is typical called at the end of a document.
        Specified by:
        clearAdaptiveData in interface TokenNameFinder
      • getmPatterns

        public Pattern[] getmPatterns()
      • setmPatterns

        public void setmPatterns​(Pattern[] mPatterns)
      • getsType

        public String getsType()
      • setsType

        public void setsType​(String sType)