C# 클래스 Nuve.NGrams.NGramModel

This class is in experimental state. Use at your own risk.
파일 보기 프로젝트 열기: hrzafer/nuve 1 사용 예제들

공개 메소드들

메소드 설명
AddSentence ( IEnumerable tokens ) : void
AddStartStopSymbols ( IList tokens ) : void
Deserialize ( string filepath ) : void
GetMLE ( Nuve.NGrams.NGram denominatorNGram, Nuve.NGrams.NGram nominatorNGram ) : double
GetSentenceProbability ( ) : double
GetSentenceProbability ( IList tokens ) : double
GetSentenceProbabilityForUnigrams ( IEnumerable tokens ) : double
GetUnigramMLE ( Nuve.NGrams.NGram nGram ) : double
NGramModel ( int nGramSize ) : System
NGramModel ( int nGramSize, string modelFilepath ) : System

메소드 상세

AddSentence() 공개 메소드

public AddSentence ( IEnumerable tokens ) : void
tokens IEnumerable
리턴 void

AddStartStopSymbols() 공개 메소드

public AddStartStopSymbols ( IList tokens ) : void
tokens IList
리턴 void

Deserialize() 공개 메소드

public Deserialize ( string filepath ) : void
filepath string
리턴 void

GetMLE() 공개 메소드

public GetMLE ( Nuve.NGrams.NGram denominatorNGram, Nuve.NGrams.NGram nominatorNGram ) : double
denominatorNGram Nuve.NGrams.NGram
nominatorNGram Nuve.NGrams.NGram
리턴 double

GetSentenceProbability() 공개 메소드

public GetSentenceProbability ( ) : double
리턴 double

GetSentenceProbability() 공개 메소드

public GetSentenceProbability ( IList tokens ) : double
tokens IList
리턴 double

GetSentenceProbabilityForUnigrams() 공개 메소드

public GetSentenceProbabilityForUnigrams ( IEnumerable tokens ) : double
tokens IEnumerable
리턴 double

GetUnigramMLE() 공개 메소드

public GetUnigramMLE ( Nuve.NGrams.NGram nGram ) : double
nGram Nuve.NGrams.NGram
리턴 double

NGramModel() 공개 메소드

public NGramModel ( int nGramSize ) : System
nGramSize int
리턴 System

NGramModel() 공개 메소드

public NGramModel ( int nGramSize, string modelFilepath ) : System
nGramSize int
modelFilepath string
리턴 System