Package | Description |
---|---|
gov.nih.nlm.nls.cSpell.Candidates |
Provides Java classes to generate candidates of 1To1, Split, Merge corrections for non-words/real-words.
|
gov.nih.nlm.nls.cSpell.Corrector |
Provides Java classes to correct target token(s) with the best candidate found in 1To1, Split, Merge corrections for non-words/real-words.
|
gov.nih.nlm.nls.cSpell.Ranker |
Provides Java classes to rank candidates and find the best candidate for 1To1, Split, Merge corrections for non-words/real-words.
|
Modifier and Type | Method and Description |
---|---|
static java.util.HashSet<MergeObj> |
NonWordMergeCandidates.GetCandidates(int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTextList,
CSpellApi cSpellApi) |
static java.util.HashSet<MergeObj> |
RealWordMergeCandidates.GetCandidates(int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTextList,
CSpellApi cSpellApi) |
protected static java.util.HashSet<MergeObj> |
CandidatesUtilMerge.GetMergeSetByMergeNo(int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTextList,
int mergeNo,
boolean mergeWithHyphen,
boolean shortWordMerge,
RootDictionary suggestDic,
RootDictionary aADic,
RootDictionary mwDic) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
MergeObj.GetNonMergeTerm(MergeObj mergeObj,
java.util.ArrayList<TokenObj> nonSpaceTextList) |
Modifier and Type | Method and Description |
---|---|
static MergeObj |
RealWordMergeCorrector.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 MergeObj |
NonWordMergeCorrector.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.
|
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<TokenObj> |
MergeCorrector.CorrectTokenListByMerge(java.util.ArrayList<TokenObj> inTokenList,
java.util.ArrayList<MergeObj> mergeObjList,
java.lang.String procHistStr,
boolean debugFlag,
CSpellApi cSpellApi) |
Modifier and Type | Method and Description |
---|---|
static MergeObj |
RankNonWordMergeByContext.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByContext.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
double rwMergeFactor,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByMode.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
CSpellApi cSpellApi,
boolean debugFlag,
int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList) |
static MergeObj |
RankNonWordMergeByMode.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
CSpellApi cSpellApi,
int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
boolean debugFlag) |
static MergeObj |
RankNonWordMergeByContext.GetTopRankMergeObjByScore(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByContext.GetTopRankMergeObjByScore(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
Modifier and Type | Method and Description |
---|---|
static java.util.ArrayList<ContextScore> |
RankNonWordMergeByContext.GetCandidateScoreList(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static java.util.ArrayList<ContextScore> |
RankRealWordMergeByContext.GetCandidateScoreList(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static java.util.HashSet<ContextScore> |
RankNonWordMergeByContext.GetCandidateScoreSet(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static java.util.HashSet<ContextScore> |
RankRealWordMergeByContext.GetCandidateScoreSet(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static MergeObj |
RankNonWordMergeByContext.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByContext.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
double rwMergeFactor,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByMode.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
CSpellApi cSpellApi,
boolean debugFlag,
int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList) |
static MergeObj |
RankNonWordMergeByMode.GetTopRankMergeObj(java.util.HashSet<MergeObj> candidates,
CSpellApi cSpellApi,
int tarPos,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
boolean debugFlag) |
static MergeObj |
RankNonWordMergeByContext.GetTopRankMergeObjByScore(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
static MergeObj |
RankRealWordMergeByContext.GetTopRankMergeObjByScore(java.util.HashSet<MergeObj> candidates,
java.util.ArrayList<TokenObj> nonSpaceTokenList,
Word2Vec word2VecIm,
Word2Vec word2VecOm,
boolean word2VecSkipWord,
int contextRadius,
boolean debugFlag) |
Submit a bug or feature
Copyright © 2018 National Library of Medicine