public class SubstitutorsUnion extends Object implements ClauseSubstitutor
| Constructor and Description |
|---|
SubstitutorsUnion(List<ClauseSubstitutor> substitutors) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(edu.stanford.nlp.ling.CoreLabel key)
Returns true if substitutor contains key with given label
|
boolean |
containsKey(String keyLabel)
Returns true if substitutor contains key with given label
E.g.
|
CoreLabelSequence |
getGrouped(edu.stanford.nlp.ling.CoreLabel key)
Searches for referenced group by any label included into the key
|
CoreLabelSequence |
getGrouped(String keyLabel)
Searches for referenced group by any label included into the key
E.g.
|
Optional<CoreLabelSequence> |
getGroupedByFirstLabel(edu.stanford.nlp.ling.CoreLabel label)
Searches for referenced group by only first label in the key
|
static ClauseSubstitutor |
of(ClauseSubstitutor... substitutors) |
public SubstitutorsUnion(List<ClauseSubstitutor> substitutors)
public static ClauseSubstitutor of(ClauseSubstitutor... substitutors)
public boolean containsKey(edu.stanford.nlp.ling.CoreLabel key)
ClauseSubstitutorcontainsKey in interface ClauseSubstitutorpublic boolean containsKey(String keyLabel)
ClauseSubstitutorcontainsKey in interface ClauseSubstitutorpublic Optional<CoreLabelSequence> getGroupedByFirstLabel(edu.stanford.nlp.ling.CoreLabel label)
ClauseSubstitutorgetGroupedByFirstLabel in interface ClauseSubstitutorpublic CoreLabelSequence getGrouped(edu.stanford.nlp.ling.CoreLabel key)
ClauseSubstitutorgetGrouped in interface ClauseSubstitutorpublic CoreLabelSequence getGrouped(String keyLabel)
ClauseSubstitutorgetGrouped in interface ClauseSubstitutorCopyright © 2015. All rights reserved.