Interface Lemmatizer

    • Method Detail

      • lemmatize

        String[] lemmatize​(String[] toks,
                           String[] tags)
        Generates lemmas for the word and postag returning the result in an array.
        Parameters:
        toks - an array of the tokens
        tags - an array of the pos tags
        Returns:
        an array of possible lemmas for each token in the sequence.
      • lemmatize

        List<List<String>> lemmatize​(List<String> toks,
                                     List<String> tags)
        Generates a lemma tags for the word and postag returning the result in a list of every possible lemma for each token and postag.
        Parameters:
        toks - an array of the tokens
        tags - an array of the pos tags
        Returns:
        a list of every possible lemma for each token in the sequence.