|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.maltparser.parser.Algorithm
public abstract class Algorithm
Field Summary | |
---|---|
protected ClassifierGuide |
classifierGuide
|
protected ParserConfiguration |
currentParserConfiguration
|
protected boolean |
diagnostics
|
protected BufferedWriter |
diaWriter
|
protected DependencyParserConfig |
manager
|
protected ParserState |
parserState
|
Constructor Summary | |
---|---|
Algorithm(DependencyParserConfig manager)
Creates a parsing algorithm |
Method Summary | |
---|---|
void |
closeDiaWriter()
|
protected void |
copyDynamicInput(DependencyStructure source,
DependencyStructure target)
|
protected void |
copyEdges(DependencyStructure source,
DependencyStructure target)
Copies the edges of the source dependency structure to the target dependency structure |
ParserConfiguration |
getCurrentParserConfiguration()
Returns the current active parser configuration |
BufferedWriter |
getDiaWriter()
|
ClassifierGuide |
getGuide()
Returns the classifier guide. |
DependencyParserConfig |
getManager()
Returns the single malt configuration |
ParserState |
getParserState()
Returns the parser state |
protected void |
initParserState(int k)
|
boolean |
isDiagnostics()
|
protected AbstractParserFactory |
makeParserFactory()
Creates a parser factory specified by the --singlemalt-parsing_algorithm option |
void |
openDiaWriter(String fileName)
|
protected void |
setCurrentParserConfiguration(ParserConfiguration currentParserConfiguration)
Sets the current parser configuration |
void |
setDiagnostics(boolean diagnostics)
|
void |
setGuide(ClassifierGuide guide)
Sets the classifier guide |
void |
setManager(DependencyParserConfig manager)
Sets the single malt configuration |
protected void |
setParserState(ParserState parserState)
Sets the parser state |
abstract void |
terminate()
|
void |
writeToDiaFile(String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DependencyParserConfig manager
protected ClassifierGuide classifierGuide
protected ParserState parserState
protected ParserConfiguration currentParserConfiguration
protected boolean diagnostics
protected BufferedWriter diaWriter
Constructor Detail |
---|
public Algorithm(DependencyParserConfig manager) throws MaltChainedException
manager
- a reference to the single malt configuration
MaltChainedException
Method Detail |
---|
public abstract void terminate() throws MaltChainedException
MaltChainedException
public boolean isDiagnostics()
public void setDiagnostics(boolean diagnostics)
public BufferedWriter getDiaWriter()
public void writeToDiaFile(String message) throws MaltChainedException
MaltChainedException
public void closeDiaWriter() throws MaltChainedException
MaltChainedException
public void openDiaWriter(String fileName) throws MaltChainedException
MaltChainedException
public ClassifierGuide getGuide()
public void setGuide(ClassifierGuide guide)
guide
- a classifier guidepublic ParserConfiguration getCurrentParserConfiguration()
protected void setCurrentParserConfiguration(ParserConfiguration currentParserConfiguration)
currentParserConfiguration
- a parser configurationpublic ParserState getParserState()
protected void setParserState(ParserState parserState)
parserState
- a parser stateprotected AbstractParserFactory makeParserFactory() throws MaltChainedException
MaltChainedException
protected void initParserState(int k) throws MaltChainedException
MaltChainedException
public DependencyParserConfig getManager()
public void setManager(DependencyParserConfig manager)
manager
- a single malt configurationprotected void copyEdges(DependencyStructure source, DependencyStructure target) throws MaltChainedException
source
- a source dependency structuretarget
- a target dependency structure
MaltChainedException
protected void copyDynamicInput(DependencyStructure source, DependencyStructure target) throws MaltChainedException
MaltChainedException
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |