Package edu.kit.ipd.are.archdoclink.nlp
Interface Word
-
- All Superinterfaces:
Annotatable,TextElement
- All Known Implementing Classes:
ParseWord
public interface Word extends TextElement
Classes implementing this interface represent a word (within a text) Words should have a part-of-speech and a lemma.- Author:
- Jan Keim
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetLemma()StringgetPos()booleanisNamedEntity()booleanisPunctuation()default booleanisStopword()static booleanisStopword(String word)Checks whether a given word is a stopword-
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
-
getPos
String getPos()
- Returns:
- the POS of the word
-
isStopword
default boolean isStopword()
- Returns:
- true if the word is a stopword
-
isNamedEntity
boolean isNamedEntity()
- Returns:
- true if the word is a named entity
-
getLemma
String getLemma()
- Returns:
- the lemma of the word
-
isPunctuation
boolean isPunctuation()
- Returns:
- true if the "word" is actually a punctuation symbol
-
isStopword
static boolean isStopword(String word)
Checks whether a given word is a stopword- Parameters:
word- word that should be checked- Returns:
- true if the given word is a stopword
-
-