C# 클래스 PanGu.Dict.WordDictionary

Dictionary for word
파일 보기 프로젝트 열기: xuld/AI-Robot 1 사용 예제들

공개 메소드들

메소드 설명
DeleteWord ( String word ) : void
GetAllMatchs ( string text, bool chineseNameIdentify ) : Framework.AppendList
GetWordAttr ( string word ) : WordAttribute
InsertWord ( String word, double frequency, POS pos ) : void
Load ( String fileName ) : void
Load ( String fileName, bool textFile, string &version ) : void

Load ( String fileName, string &version ) : void
Save ( string fileName ) : void
Save ( string fileName, string version ) : void
SaveToText ( string fileName ) : void
Search ( String key ) : List

通过遍历方式搜索

SearchByLength ( int len ) : List
SearchByPos ( POS Pos ) : List
UpdateWord ( String word, double frequency, POS pos ) : void

비공개 메소드들

메소드 설명
LoadFromBinFile ( String fileName, string &verNumStr ) : WordDictionaryFile
LoadFromTextFile ( String fileName ) : WordDictionaryFile
SaveToBinFile ( String fileName, string verStr ) : void
SaveToTextFile ( String fileName ) : void

메소드 상세

DeleteWord() 공개 메소드

public DeleteWord ( String word ) : void
word String
리턴 void

GetAllMatchs() 공개 메소드

public GetAllMatchs ( string text, bool chineseNameIdentify ) : Framework.AppendList
text string
chineseNameIdentify bool
리턴 Framework.AppendList

GetWordAttr() 공개 메소드

public GetWordAttr ( string word ) : WordAttribute
word string
리턴 WordAttribute

InsertWord() 공개 메소드

public InsertWord ( String word, double frequency, POS pos ) : void
word String
frequency double
pos POS
리턴 void

Load() 공개 메소드

public Load ( String fileName ) : void
fileName String
리턴 void

Load() 공개 메소드

public Load ( String fileName, bool textFile, string &version ) : void
fileName String
textFile bool
version string 输出字典的版本号
리턴 void

Load() 공개 메소드

public Load ( String fileName, string &version ) : void
fileName String
version string
리턴 void

Save() 공개 메소드

public Save ( string fileName ) : void
fileName string
리턴 void

Save() 공개 메소드

public Save ( string fileName, string version ) : void
fileName string
version string
리턴 void

SaveToText() 공개 메소드

public SaveToText ( string fileName ) : void
fileName string
리턴 void

Search() 공개 메소드

通过遍历方式搜索
public Search ( String key ) : List
key String
리턴 List

SearchByLength() 공개 메소드

public SearchByLength ( int len ) : List
len int
리턴 List

SearchByPos() 공개 메소드

public SearchByPos ( POS Pos ) : List
Pos POS
리턴 List

UpdateWord() 공개 메소드

public UpdateWord ( String word, double frequency, POS pos ) : void
word String
frequency double
pos POS
리턴 void