public class NonWordMergeCorrector
extends java.lang.Object
History:
Modifier and Type | Method and Description |
---|---|
static MergeObj |
GetCorrectTerm(int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
CSpellApi cSpellApi,
boolean debugFlag)
The core method to correct a word by following steps:
Convert inToken to removeEndPuncStr
detect if misspell (OOV) - non-word, exclude Aa
get candidates
get candidates from merge.
|
static void |
main(java.lang.String[] args) |
public static MergeObj GetCorrectTerm(int tarPos, java.util.ArrayList<TokenObj> nonSpaceTokenList, CSpellApi cSpellApi, boolean debugFlag)
tarPos
- postion of target tokennonSpaceTokenList
- token list without space token(s)cSpellApi
- CSpell Api objectdebugFlag
- flag for debug printpublic static void main(java.lang.String[] args)
Submit a bug or feature
Copyright © 2018 National Library of Medicine