C# 클래스 JiebaNet.Segmenter.JiebaSegmenter

파일 보기 프로젝트 열기: anderscui/jieba.NET 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AddBufferToWordList void
Calc Pair>.IDictionary
CutAll IEnumerable
CutDag IEnumerable
CutDagWithoutHmm IEnumerable
CutIt IEnumerable
GetDag List>.IDictionary

공개 메소드들

메소드 설명
AddWord ( string word, int freq, string tag = null ) : void
Cut ( string text, bool cutAll = false, bool hmm = true ) : IEnumerable

The main function that segments an entire sentence that contains Chinese characters into seperated words.

CutForSearch ( string text, bool hmm = true ) : IEnumerable
DeleteWord ( string word ) : void
JiebaSegmenter ( ) : System
LoadUserDict ( string userDictFile ) : void

Loads user dictionaries.

Tokenize ( string text, TokenizerMode mode = TokenizerMode.Default, bool hmm = true ) : IEnumerable

비공개 메소드들

메소드 설명
AddBufferToWordList ( List words, string buf ) : void
Calc ( string sentence, IDictionary dag ) : Pair>.IDictionary
CutAll ( string sentence ) : IEnumerable
CutDag ( string sentence ) : IEnumerable
CutDagWithoutHmm ( string sentence ) : IEnumerable
CutIt ( string text, Func cutMethod, Regex reHan, Regex reSkip, bool cutAll ) : IEnumerable
GetDag ( string sentence ) : List>.IDictionary

메소드 상세

AddWord() 공개 메소드

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

Cut() 공개 메소드

The main function that segments an entire sentence that contains Chinese characters into seperated words.
public Cut ( string text, bool cutAll = false, bool hmm = true ) : IEnumerable
text string The string to be segmented.
cutAll bool Specify segmentation pattern. True for full pattern, False for accurate pattern.
hmm bool Whether to use the Hidden Markov Model.
리턴 IEnumerable

CutForSearch() 공개 메소드

public CutForSearch ( string text, bool hmm = true ) : IEnumerable
text string
hmm bool
리턴 IEnumerable

DeleteWord() 공개 메소드

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

JiebaSegmenter() 공개 메소드

public JiebaSegmenter ( ) : System
리턴 System

LoadUserDict() 공개 메소드

Loads user dictionaries.
public LoadUserDict ( string userDictFile ) : void
userDictFile string
리턴 void

Tokenize() 공개 메소드

public Tokenize ( string text, TokenizerMode mode = TokenizerMode.Default, bool hmm = true ) : IEnumerable
text string
mode TokenizerMode
hmm bool
리턴 IEnumerable