Class ContextLabelRetriever
- java.lang.Object
-
- org.deeplearning4j.text.movingwindow.ContextLabelRetriever
-
public class ContextLabelRetriever extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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
-
-