public class CoarseToFineParser extends Object
Modifier and Type | Class and Description |
---|---|
class |
CoarseToFineParser.Combination
Used to store evaluation Information, not useful for most users.
|
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
Set this variable to true in order for debugging information to be printed
to System.err.
|
Constructor and Description |
---|
CoarseToFineParser(InterpretedTreeAutomaton irtg,
String inputInterpretation,
FineToCoarseMapping ftc,
double theta)
Creates a new instance from the given FineToCoarseMapping.
|
Modifier and Type | Method and Description |
---|---|
static CoarseToFineParser |
makeCoarseToFineParser(InterpretedTreeAutomaton irtg,
String interpretation,
String ftcMap,
double theta)
This is a convenience method which constructs a coarse to fine parser with the given
parameters.
|
TreeAutomaton |
parse(String input)
This method is a shorter alias for
parseInputObject(java.lang.Object)
which also takes care of decoding the string representation of the input into
a suitable object. |
TreeAutomaton |
parseInputObject(Object inputObject)
Uses coarse to fine parsing to produce a pruned parse chart for the input
object.
|
CoarseToFineParser.Combination |
parseInputObjectTrackSizes(Object inputObject)
This method is used for evaluation of coarse-to-fine parsing with Alto Lab,
most users will not need it.
|
CoarseToFineParser.Combination |
parseInputObjectTrackTimes(Object inputObject)
This method is used for evaluation of coarse-to-fine parsing with Alto Lab,
most users will not need it.
|
TreeAutomaton |
parseInputObjectWithSF(Object inputObject)
Uses coarse to fine parsing to produce a pruned parse chart for the input
object.
|
CoarseToFineParser.Combination |
parseInputObjectWithSFTrackSizes(Object inputObject)
This method is used for evaluation of coarse-to-fine parsing with Alto Lab,
most users will not need it.
|
CoarseToFineParser.Combination |
parseInputObjectWithSFTrackTimes(Object inputObject)
This method is used for evaluation of coarse-to-fine parsing with Alto Lab,
most users will not need it.
|
public static boolean DEBUG
public CoarseToFineParser(InterpretedTreeAutomaton irtg, String inputInterpretation, FineToCoarseMapping ftc, double theta)
irtg
- inputInterpretation
- ftc
- theta
- threshold, if the outside+inside+ruleweight for any given rule
is less than the total inside weight of a all parses for a given level of coarseness times theta,
then the rule is ignored for the following refinement step.public TreeAutomaton parse(String input) throws ParserException
parseInputObject(java.lang.Object)
which also takes care of decoding the string representation of the input into
a suitable object.input
- ParserException
public TreeAutomaton parseInputObject(Object inputObject)
parseInputObjectWithSF(java.lang.Object)
inputObject
- public TreeAutomaton parseInputObjectWithSF(Object inputObject)
inputObject
- public CoarseToFineParser.Combination parseInputObjectWithSFTrackSizes(Object inputObject)
inputObject
- public CoarseToFineParser.Combination parseInputObjectWithSFTrackTimes(Object inputObject)
inputObject
- public CoarseToFineParser.Combination parseInputObjectTrackSizes(Object inputObject) throws ClassNotFoundException, InstantiationException, IllegalAccessException
inputObject
- ClassNotFoundException
InstantiationException
IllegalAccessException
public CoarseToFineParser.Combination parseInputObjectTrackTimes(Object inputObject) throws ClassNotFoundException, InstantiationException, IllegalAccessException
inputObject
- ClassNotFoundException
InstantiationException
IllegalAccessException
public static CoarseToFineParser makeCoarseToFineParser(InterpretedTreeAutomaton irtg, String interpretation, String ftcMap, double theta) throws FileNotFoundException, IOException, ParseException
InsideRuleFactory.NONTERMINAL_SEPARATOR
indicates
that a nonterminal consists of multiple parts and each part after a separator should be mapped individually.irtg
- grammar corresponding to finest level of analysisinterpretation
- interpretation which the objects to be parsed will
come fromftcMap
- theta
- pruning threshold as described for the constructorFileNotFoundException
IOException
ParseException
Copyright © 2017. All rights reserved.