C# Class JiebaNet.Segmenter.WordDictionary

Exibir arquivo Open project: anderscui/jieba.NET Class Usage Examples

Public Methods

Method Description
AddWord ( string word, int freq, string tag = null ) : void
ContainsWord ( string word ) : bool
DeleteWord ( string word ) : void
GetFreqOrDefault ( string key ) : int

Private Methods

Method Description
LoadDict ( ) : void
SuggestFreq ( string word, IEnumerable segments ) : int
WordDictionary ( ) : System

Method Details

AddWord() public method

public AddWord ( string word, int freq, string tag = null ) : void
word string
freq int
tag string
return void

ContainsWord() public method

public ContainsWord ( string word ) : bool
word string
return bool

DeleteWord() public method

public DeleteWord ( string word ) : void
word string
return void

GetFreqOrDefault() public method

public GetFreqOrDefault ( string key ) : int
key string
return int