C# Class PanGu.Segment

Afficher le fichier Open project: xuld/AI-Robot Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DoSegment ( string text ) : ICollection
text string
Résultat ICollection

DoSegment() public méthode

public DoSegment ( string text, Match options ) : ICollection
text string
options Match
Résultat ICollection

DoSegment() public méthode

public DoSegment ( string text, Match options, Match parameters ) : ICollection
text string
options Match
parameters Match
Résultat ICollection

Init() public static méthode

public static Init ( ) : void
Résultat void

Init() public static méthode

public static Init ( string fileName ) : void
fileName string
Résultat void