C# Class PanGu.Segment

Show file Open project: xuld/AI-Robot Class Usage Examples

Public Methods

Method Description
DoSegment ( string text ) : ICollection
DoSegment ( string text, Match options ) : ICollection
DoSegment ( string text, Match options, Match parameters ) : ICollection
Init ( ) : void
Init ( string fileName ) : void

Private Methods

Method Description
ConvertChineseCapitalToAsiic ( string text ) : string
FilterStopWord ( SuperLinkedList wordInfoList ) : void
GetInitSegment ( string text ) : SuperLinkedList
GetStem ( string word ) : string
InitInfinitiveVerbTable ( ) : void
LoadDictionary ( ) : void
MergeEnglishSpecialWord ( string orginalText, SuperLinkedList wordInfoList, SuperLinkedListNode &current ) : bool

合并英文专用词。 如果字典中有英文专用词如U.S.A, C++.C#等 需要对初步分词后的英文和字母进行合并

PreSegment ( String text ) : SuperLinkedList
ProcessAfterSegment ( string orginalText, SuperLinkedList result ) : void

Method Details

DoSegment() public method

public DoSegment ( string text ) : ICollection
text string
return ICollection

DoSegment() public method

public DoSegment ( string text, Match options ) : ICollection
text string
options Match
return ICollection

DoSegment() public method

public DoSegment ( string text, Match options, Match parameters ) : ICollection
text string
options Match
parameters Match
return ICollection

Init() public static method

public static Init ( ) : void
return void

Init() public static method

public static Init ( string fileName ) : void
fileName string
return void