Package | Description |
---|---|
org.apache.ctakes.core.nlp.tokenizer |
Modifier and Type | Method and Description |
---|---|
static ContractionResult |
ContractionsPTB.getLengthIfNextApostIsMiddleOfContraction(int position,
int nextNonLetterDigit,
String lowerCasedText)
Determine if the text starting at 'position' within 'text' is the start of a
contraction such as "should've" or "hasn't" or "it's" by looking at whether
there is a letter before the apostrophe, and the appropriate letters after the
apostrophe (or in the case of "n't", verify the letter before is an 'n'
Note that if the text starting at 'position' is something like "n't" which
isn't a complete word, returns null.
|
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.