C# 클래스 CFGLib.Parsers.CYK.CykParser

상속: Parser
파일 보기 프로젝트 열기: ellisonch/CFGLib 1 사용 예제들

공개 메소드들

메소드 설명
CykParser ( CNFGrammar grammar ) : CFGLib.Parsers.Forests
ParseGetForest ( Sentence s ) : ForestInternal
ParseGetProbability ( Sentence s ) : double

Returns the probability that this grammar generated the given sentence

비공개 메소드들

메소드 설명
BuildLocalCYKProductionList ( int>.Dictionary RToJ ) : IEnumerable

Returns a representation of the nt productions that is efficient for CYK

BuildRToJ ( ISet nonterminals_R ) : int>.Dictionary
CykFillInBase ( Sentence s, double P, int>.Dictionary RToJ ) : bool
PrintP ( Sentence s, double P ) : void

메소드 상세

CykParser() 공개 메소드

public CykParser ( CNFGrammar grammar ) : CFGLib.Parsers.Forests
grammar CNFGrammar
리턴 CFGLib.Parsers.Forests

ParseGetForest() 공개 메소드

public ParseGetForest ( Sentence s ) : ForestInternal
s Sentence
리턴 CFGLib.Parsers.Forests.ForestInternal

ParseGetProbability() 공개 메소드

Returns the probability that this grammar generated the given sentence
public ParseGetProbability ( Sentence s ) : double
s Sentence
리턴 double