public class SimpleSubstitutorStorage extends Object implements ClauseSubstitutor
| Constructor and Description |
|---|
SimpleSubstitutorStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroups(Map<CoreLabelSequence,CoreLabelSequence> groups) |
boolean |
containsKey(edu.stanford.nlp.ling.CoreLabel keyLabel)
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
|
public void addGroups(Map<CoreLabelSequence,CoreLabelSequence> groups)
public boolean containsKey(edu.stanford.nlp.ling.CoreLabel keyLabel)
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.