Interface TokenContextGenerator

    • Method Detail

      • getContext

        String[] getContext​(String sentence,
                            int index)
        Parameters:
        sentence - The string that represents a sentence.
        index - The index to consider splitting tokens.
        Returns:
        An array of features for a sentence at the specified index.