public class RealWordSplitCorrector
extends java.lang.Object
History:
Modifier and Type | Method and Description |
---|---|
static TokenObj |
GetCorrectTerm(TokenObj inTokenObj,
CSpellApi cSpellApi,
boolean debugFlag,
int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList)
The core method to correct a word by following steps:
Convert inToken to coreTerm
detect if real-word
get split candidates
Rank candidates
context
Update information
|
static void |
main(java.lang.String[] args) |
public static TokenObj GetCorrectTerm(TokenObj inTokenObj, CSpellApi cSpellApi, boolean debugFlag, int tarPos, java.util.ArrayList<TokenObj> nonSpaceTokenList)
inTokenObj
- the input tokenObj (single word)cSpellApi
- cSpell API objectdebugFlag
- flag for debug printtarPos
- position of the target token to be splitnonSpaceTokenList
- the token list without space tokenspublic static void main(java.lang.String[] args)
Submit a bug or feature
Copyright © 2018 National Library of Medicine