public class SentenceBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<edu.stanford.nlp.ling.CoreLabel,String> |
NO_MUTATION |
| Constructor and Description |
|---|
SentenceBuilder(edu.stanford.nlp.pipeline.Annotation document) |
SentenceBuilder(edu.stanford.nlp.util.CoreMap sentence) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
asStrings() |
List<String> |
asStrings(ClauseSubstitutor substitutor)
Builds String representation of current sentence mutating labels with provided substitutor.
|
List<String> |
asStrings(java.util.function.Function<edu.stanford.nlp.ling.CoreLabel,String> onLabel)
Transform the labels to String allowing make additional manual mutation on each label.
|
public static java.util.function.Function<edu.stanford.nlp.ling.CoreLabel,String> NO_MUTATION
public SentenceBuilder(edu.stanford.nlp.pipeline.Annotation document)
public SentenceBuilder(edu.stanford.nlp.util.CoreMap sentence)
public List<String> asStrings(ClauseSubstitutor substitutor)
public List<String> asStrings(java.util.function.Function<edu.stanford.nlp.ling.CoreLabel,String> onLabel)
Copyright © 2015. All rights reserved.