public class LosslessMapping extends java.lang.Object implements Dependency2PhraseStructure
Constructor and Description |
---|
LosslessMapping(DataFormatInstance dependencyDataFormatInstance,
DataFormatInstance phraseStructuretDataFormatInstance,
SymbolTableHandler symbolTableHandler) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
connectUnattachedSpines(MappablePhraseStructureGraph graph) |
DataFormatInstance |
getDependencyDataFormatInstance() |
HeadRules |
getHeadRules() |
java.lang.String |
getOptionString() |
DataFormatInstance |
getPhraseStructuretDataFormatInstance() |
void |
setDependencyDataFormatInstance(DataFormatInstance dependencyDataFormatInstance) |
void |
setHeadRules(HeadRules headRules) |
void |
setHeadRules(java.lang.String headRulesURL) |
void |
setOptionString(java.lang.String optionString) |
void |
setPhraseStructuretDataFormatInstance(DataFormatInstance phraseStructuretDataFormatInstance) |
void |
update(MappablePhraseStructureGraph graph,
Edge e,
java.lang.Object arg) |
void |
updateDependenyGraph(MappablePhraseStructureGraph graph,
PhraseStructureNode top) |
void |
updatePhraseStructureGraph(MappablePhraseStructureGraph graph,
Edge depEdge,
boolean attachHeadSpineToRoot) |
public LosslessMapping(DataFormatInstance dependencyDataFormatInstance, DataFormatInstance phraseStructuretDataFormatInstance, SymbolTableHandler symbolTableHandler)
public void clear()
public java.lang.String getOptionString()
public void setOptionString(java.lang.String optionString)
public DataFormatInstance getDependencyDataFormatInstance()
public void setDependencyDataFormatInstance(DataFormatInstance dependencyDataFormatInstance)
public DataFormatInstance getPhraseStructuretDataFormatInstance()
public void setPhraseStructuretDataFormatInstance(DataFormatInstance phraseStructuretDataFormatInstance)
public void update(MappablePhraseStructureGraph graph, Edge e, java.lang.Object arg) throws MaltChainedException
MaltChainedException
public void updateDependenyGraph(MappablePhraseStructureGraph graph, PhraseStructureNode top) throws MaltChainedException
MaltChainedException
public void connectUnattachedSpines(MappablePhraseStructureGraph graph) throws MaltChainedException
MaltChainedException
public void updatePhraseStructureGraph(MappablePhraseStructureGraph graph, Edge depEdge, boolean attachHeadSpineToRoot) throws MaltChainedException
MaltChainedException
public HeadRules getHeadRules()
public void setHeadRules(HeadRules headRules)
public void setHeadRules(java.lang.String headRulesURL) throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.