Class ContextLabelRetriever


  • public class ContextLabelRetriever
    extends Object
    • Method Detail

      • stringWithLabels

        public static org.nd4j.common.primitives.Pair<String,​org.nd4j.common.collection.MultiDimensionalMap<Integer,​Integer,​String>> stringWithLabels​(String sentence,
                                                                                                                                                                        TokenizerFactory tokenizerFactory)
        Returns a stripped sentence with the indices of words with certain kinds of labels.
        Parameters:
        sentence - the sentence to process
        Returns:
        a pair of a post processed sentence with labels stripped and the spans of the labels