Package edu.kit.ipd.are.archdoclink.nlp
Interface Phrase
-
- All Superinterfaces:
Annotatable,TextElement
- All Known Implementing Classes:
ParsePhrase
public interface Phrase extends TextElement
Classes implementing this interface represent a Phrase. Examples for phrases include noun phrases and verb phrases.- Author:
- Jan Keim
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsWord(Word word)Checks whether a word is contained in the phrase.StringgetTextWithoutLeadingStopwords()PhraseTypegetType()List<? extends Word>getWords()-
Methods inherited from interface edu.kit.ipd.are.archdoclink.nlp.Annotatable
annotate
-
Methods inherited from interface edu.kit.ipd.are.archdoclink.nlp.TextElement
getText
-
-
-
-
Method Detail
-
getType
PhraseType getType()
- Returns:
- the PhraseType
-
getTextWithoutLeadingStopwords
String getTextWithoutLeadingStopwords()
- Returns:
- String containing the text without any leading stopwords
-
containsWord
boolean containsWord(Word word)
Checks whether a word is contained in the phrase.- Parameters:
word- Word that should be checked for- Returns:
- true, if the given word is contained in the phrase, else false
-
-