public class RealWordMergeCorrector
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:
detect if real-word for merge
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
- the position of target tokenObjnonSpaceTokenList
- token list without space tokenscSpellApi
- for all dictioanry and Word2Vec datadebugFlag
- boolean flag for debug printpublic static void main(java.lang.String[] args)
Submit a bug or feature
Copyright © 2018 National Library of Medicine