public class ArcStandard extends ParsingSystem
labels, rootLabel, transitions| Constructor and Description |
|---|
ArcStandard(TreebankLanguagePack tlp,
java.util.List<java.lang.String> labels,
boolean verbose) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Configuration c,
java.lang.String t)
Apply the given transition to the given configuration, modifying
the configuration's state in place.
|
boolean |
canApply(Configuration c,
java.lang.String t)
Determine whether the given transition is legal for this
configuration.
|
java.lang.String |
getOracle(Configuration c,
edu.stanford.nlp.parser.nndep.DependencyTree dTree)
Provide a static-oracle recommendation for the next parsing step
to take.
|
Configuration |
initialConfiguration(CoreMap s)
Build an initial parser configuration from the given sentence.
|
boolean |
isOracle(Configuration c,
java.lang.String t,
edu.stanford.nlp.parser.nndep.DependencyTree dTree)
Determine whether applying the given transition in the given
configuration tree will leave in us a state in which we can reach
the gold tree.
|
boolean |
isTerminal(Configuration c)
Determine if the given configuration corresponds to a parser which
has completed its parse.
|
evaluate, getTransitionID, getUAS, getUASnoPunc, numTransitionspublic ArcStandard(TreebankLanguagePack tlp, java.util.List<java.lang.String> labels, boolean verbose)
public boolean isTerminal(Configuration c)
ParsingSystempublic Configuration initialConfiguration(CoreMap s)
ParsingSysteminitialConfiguration in class ParsingSystempublic boolean canApply(Configuration c, java.lang.String t)
ParsingSystemcanApply in class ParsingSystemc - Parsing configurationt - Transition stringpublic void apply(Configuration c, java.lang.String t)
ParsingSystemapply in class ParsingSystempublic java.lang.String getOracle(Configuration c, edu.stanford.nlp.parser.nndep.DependencyTree dTree)
ParsingSystemgetOracle in class ParsingSystemc - Current parser configurationdTree - Gold tree which parser needs to reachpublic boolean isOracle(Configuration c, java.lang.String t, edu.stanford.nlp.parser.nndep.DependencyTree dTree)
ParsingSystem