C# Class WordSegmenter.Models.HiddenMarkovModel

Mostra file Open project: partychen/jieba_csharp

Public Properties

Property Type Description
InitProb double[]
State char[]
TransProb ].double[

Public Methods

Method Description
GetCurrentState ( int current ) : char
GetInitProb ( int state, char c ) : double
GetNextProb ( int currentState, int toState, char c ) : double

Private Methods

Method Description
GetProb ( double>.IDictionary dict, char key ) : double
HiddenMarkovModel ( ) : System.Collections.Generic
LoadEmitProb ( ) : Dictionary>

Method Details

GetCurrentState() public method

public GetCurrentState ( int current ) : char
current int
return char

GetInitProb() public method

public GetInitProb ( int state, char c ) : double
state int
c char
return double

GetNextProb() public method

public GetNextProb ( int currentState, int toState, char c ) : double
currentState int
toState int
c char
return double

Property Details

InitProb public_oe property

public double[] InitProb
return double[]

State public_oe property

public char[] State
return char[]

TransProb public_oe property

public double[,] TransProb
return ].double[