Package org.languagetool.chunking
Class EnglishChunkFilter
java.lang.Object
org.languagetool.chunking.EnglishChunkFilter
Our chunker detects noun phrases but not whether they are singular
or plural noun phrases. We add this information here.
- Since:
- 2.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.languagetool.chunking.ChunkTag
private static final org.languagetool.chunking.ChunkTag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List
<ChunkTaggedToken> filter
(List<ChunkTaggedToken> tokens) private EnglishChunkFilter.ChunkType
getChunkType
(List<ChunkTaggedToken> tokens, int chunkStartPos) Get the type of the chunk that starts at the given position.private boolean
private boolean
isBeginningOfNounPhrase
(ChunkTaggedToken taggedToken) private boolean
isContinuationOfNounPhrase
(ChunkTaggedToken taggedToken) private boolean
isEndOfNounPhrase
(List<ChunkTaggedToken> tokens, int i)
-
Field Details
-
BEGIN_NOUN_PHRASE_TAG
private static final org.languagetool.chunking.ChunkTag BEGIN_NOUN_PHRASE_TAG -
IN_NOUN_PHRASE_TAG
private static final org.languagetool.chunking.ChunkTag IN_NOUN_PHRASE_TAG
-
-
Constructor Details
-
EnglishChunkFilter
EnglishChunkFilter()
-
-
Method Details
-
filter
-
isBeginningOfNounPhrase
-
isEndOfNounPhrase
-
isContinuationOfNounPhrase
-
getChunkType
Get the type of the chunk that starts at the given position. -
hasNounWithPluralReading
-