Module io.annot8.components.wordnet
Class WordNet.Processor
- java.lang.Object
-
- io.annot8.common.components.AbstractComponent
-
- io.annot8.common.components.AbstractProcessor
-
- io.annot8.components.base.processors.AbstractContentProcessor<io.annot8.common.data.content.Text>
-
- io.annot8.components.base.processors.AbstractTextProcessor
-
- io.annot8.components.wordnet.processors.WordNet.Processor
-
- All Implemented Interfaces:
io.annot8.api.components.Annot8Component,io.annot8.api.components.Processor,AutoCloseable
- Enclosing class:
- WordNet
public static class WordNet.Processor extends AbstractTextProcessor
-
-
Constructor Summary
Constructors Constructor Description Processor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Optional<net.sf.extjwnl.data.IndexWord>lookupWord(net.sf.extjwnl.data.POS pos, String word)Lookup the word from the dictionary, performing lemmisation if required.protected voidprocess(io.annot8.common.data.content.Text content)static net.sf.extjwnl.data.POStoPos(String pos)Convert a string (Penntree bank / simple word) to a Part of speech type.-
Methods inherited from class io.annot8.components.base.processors.AbstractContentProcessor
accept, process
-
-
-
-
Method Detail
-
process
protected void process(io.annot8.common.data.content.Text content)
- Specified by:
processin classAbstractContentProcessor<io.annot8.common.data.content.Text>
-
close
public void close()
-
toPos
public static net.sf.extjwnl.data.POS toPos(String pos)
Convert a string (Penntree bank / simple word) to a Part of speech type.- Parameters:
pos- the pos- Returns:
- the pos
-
-