Class ImprovedParseSentence
- java.lang.Object
-
- edu.kit.ipd.are.graphimprove.nlp.accessdecorators.ImprovedParseSentence
-
- All Implemented Interfaces:
edu.kit.ipd.are.archdoclink.nlp.Annotatable,edu.kit.ipd.are.archdoclink.nlp.Identifiable,edu.kit.ipd.are.archdoclink.nlp.Sentence,edu.kit.ipd.are.archdoclink.nlp.TextElement
public class ImprovedParseSentence extends Object implements edu.kit.ipd.are.archdoclink.nlp.Sentence
Implement the access of sentence INode, which was generated by the SentenceStrategy- Author:
- dominik
-
-
Constructor Summary
Constructors Constructor Description ImprovedParseSentence(ImprovedParseDocument doc, edu.kit.ipd.parse.luna.graph.INode sentenceINode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidannotate(edu.kit.ipd.are.archdoclink.nlp.Annotation annotation)edu.kit.ipd.are.archdoclink.nlp.DocumentgetDocument()StringgetId()List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase>getNounPhrases()List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase>getPhrases()List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase>getPhrasesOfType(edu.kit.ipd.are.archdoclink.nlp.PhraseType phraseType)StringgetText()List<? extends edu.kit.ipd.are.archdoclink.nlp.Word>getWords()Optional<? extends edu.kit.ipd.are.archdoclink.nlp.Sentence>nextSentence()Optional<? extends edu.kit.ipd.are.archdoclink.nlp.Sentence>previousSentence()
-
-
-
Constructor Detail
-
ImprovedParseSentence
public ImprovedParseSentence(ImprovedParseDocument doc, edu.kit.ipd.parse.luna.graph.INode sentenceINode)
-
-
Method Detail
-
getText
public String getText()
- Specified by:
getTextin interfaceedu.kit.ipd.are.archdoclink.nlp.TextElement
-
getId
public String getId()
- Specified by:
getIdin interfaceedu.kit.ipd.are.archdoclink.nlp.Identifiable
-
annotate
public void annotate(edu.kit.ipd.are.archdoclink.nlp.Annotation annotation)
- Specified by:
annotatein interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
getDocument
public edu.kit.ipd.are.archdoclink.nlp.Document getDocument()
- Specified by:
getDocumentin interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
getNounPhrases
public List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase> getNounPhrases()
- Specified by:
getNounPhrasesin interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
getPhrases
public List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase> getPhrases()
- Specified by:
getPhrasesin interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
getPhrasesOfType
public List<? extends edu.kit.ipd.are.archdoclink.nlp.Phrase> getPhrasesOfType(edu.kit.ipd.are.archdoclink.nlp.PhraseType phraseType)
- Specified by:
getPhrasesOfTypein interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
getWords
public List<? extends edu.kit.ipd.are.archdoclink.nlp.Word> getWords()
- Specified by:
getWordsin interfaceedu.kit.ipd.are.archdoclink.nlp.Sentence
-
nextSentence
public Optional<? extends edu.kit.ipd.are.archdoclink.nlp.Sentence> nextSentence()
-
previousSentence
public Optional<? extends edu.kit.ipd.are.archdoclink.nlp.Sentence> previousSentence()
-
-