public class ContextLabelRetriever extends Object
Modifier and Type | Method and 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.
|
public static org.nd4j.common.primitives.Pair<String,org.nd4j.common.collection.MultiDimensionalMap<Integer,Integer,String>> stringWithLabels(String sentence, TokenizerFactory tokenizerFactory)
sentence
- the sentence to processCopyright © 2022. All rights reserved.