|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.procasor.treeAnalyser.ClassicTreeAnalyser
Tree analyser can analyse a parse tree and resolute the importance and role of single words, detect role of the actors in this sentence and detect the action type of the sentence.
This analysis uses output from linguistic tools and XPath querying. For this analysis, Classic tree analyser uses rules stated by V. Mencl in his work.
Same rules as stated in TreeAnalyser
apply for the content of the returned
Semantics object.
Constructor Summary | |
ClassicTreeAnalyser()
Creates an Analyser |
Method Summary | |
Semantics |
analyseCondition(java.lang.String parseTree)
Analyses the given parse tree as a condition. |
Semantics |
analyseStep(java.lang.String parseTree)
Analyses the given parse tree as a use case step. |
Semantics |
minimalSemantics(java.lang.String parseTree)
Creates a Semantics object for the sentence. |
void |
setProject(Project p)
Sets active project. |
void |
setUseCase(UseCase uc)
Sets active use case, that will be used to gather actor information from. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassicTreeAnalyser() throws cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException
cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException
- only in some weird unknown situationMethod Detail |
public void setProject(Project p)
TreeAnalyser
setProject
in interface TreeAnalyser
p
- the project to be setpublic void setUseCase(UseCase uc)
TreeAnalyser
setUseCase
in interface TreeAnalyser
uc
- the use case to be setpublic Semantics analyseStep(java.lang.String parseTree) throws cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException, cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException, cz.cuni.mff.procasor.treeAnalyser.AnalysisFailedException
TreeAnalyser
analyseStep
in interface TreeAnalyser
parseTree
- Parse tree of the sentence to analyse
cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException
- when use case or project information wasn't supplied
cz.cuni.mff.procasor.treeAnalyser.AnalysisFailedException
- when tree analysis is not successful
cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException
- when supplied parse tree is not validpublic Semantics analyseCondition(java.lang.String parseTree) throws cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException, cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException, cz.cuni.mff.procasor.treeAnalyser.AnalysisFailedException
TreeAnalyser
analyseCondition
in interface TreeAnalyser
parseTree
- Parse tree of the sentence/fragment to analyse
cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException
- when supplied parse tree is not valid
cz.cuni.mff.procasor.treeAnalyser.AnalyserNotReadyException
- when use case or project information wasn't supplied
cz.cuni.mff.procasor.treeAnalyser.AnalysisFailedException
- when tree analysis is not successfulpublic Semantics minimalSemantics(java.lang.String parseTree) throws cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException
TreeAnalyser
minimalSemantics
in interface TreeAnalyser
parseTree
- Parse tree of the sentence
cz.cuni.mff.procasor.treeAnalyser.InvalidParseTreeException
- when supplied parse tree is not valid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |