C# Class MSTParser.KBestParseForest

Mostra file Open project: rasoolims/MSTParserCSharp Class Usage Examples

Public Properties

Property Type Description
Chart MSTParser.ParseForestItem[
RootType int

Public Methods

Method Description
Add ( int s, int type, int dir, double score, FeatureVector fv ) : bool
Add ( int s, int r, int t, int type, int dir, int comp, double score, FeatureVector fv, ParseForestItem p1, ParseForestItem p2 ) : bool
Cat ( FeatureVector fv1, FeatureVector fv2 ) : FeatureVector
GetBestParse ( ) : object[]
GetBestParses ( ) : ].object[
GetDepString ( ParseForestItem pfi ) : string
GetFeatureVector ( ParseForestItem pfi ) : FeatureVector
GetItem ( int s, int t, int dir, int comp ) : ParseForestItem
GetItem ( int s, int t, int dir, int comp, int k ) : ParseForestItem
GetItems ( int s, int t, int dir, int comp ) : MSTParser.ParseForestItem[]
GetKBestPairs ( ParseForestItem items1, ParseForestItem items2 ) : ].int[
GetProb ( int s, int t, int dir, int comp ) : double
GetProb ( int s, int t, int dir, int comp, int i ) : double
GetProbs ( int s, int t, int dir, int comp ) : double[]
KBestParseForest ( int start, int end, DependencyInstance inst, int K ) : MSTParser

Method Details

Add() public method

public Add ( int s, int type, int dir, double score, FeatureVector fv ) : bool
s int
type int
dir int
score double
fv FeatureVector
return bool

Add() public method

public Add ( int s, int r, int t, int type, int dir, int comp, double score, FeatureVector fv, ParseForestItem p1, ParseForestItem p2 ) : bool
s int
r int
t int
type int
dir int
comp int
score double
fv FeatureVector
p1 ParseForestItem
p2 ParseForestItem
return bool

Cat() public method

public Cat ( FeatureVector fv1, FeatureVector fv2 ) : FeatureVector
fv1 FeatureVector
fv2 FeatureVector
return FeatureVector

GetBestParse() public method

public GetBestParse ( ) : object[]
return object[]

GetBestParses() public method

public GetBestParses ( ) : ].object[
return ].object[

GetDepString() public method

public GetDepString ( ParseForestItem pfi ) : string
pfi ParseForestItem
return string

GetFeatureVector() public method

public GetFeatureVector ( ParseForestItem pfi ) : FeatureVector
pfi ParseForestItem
return FeatureVector

GetItem() public method

public GetItem ( int s, int t, int dir, int comp ) : ParseForestItem
s int
t int
dir int
comp int
return ParseForestItem

GetItem() public method

public GetItem ( int s, int t, int dir, int comp, int k ) : ParseForestItem
s int
t int
dir int
comp int
k int
return ParseForestItem

GetItems() public method

public GetItems ( int s, int t, int dir, int comp ) : MSTParser.ParseForestItem[]
s int
t int
dir int
comp int
return MSTParser.ParseForestItem[]

GetKBestPairs() public method

public GetKBestPairs ( ParseForestItem items1, ParseForestItem items2 ) : ].int[
items1 ParseForestItem
items2 ParseForestItem
return ].int[

GetProb() public method

public GetProb ( int s, int t, int dir, int comp ) : double
s int
t int
dir int
comp int
return double

GetProb() public method

public GetProb ( int s, int t, int dir, int comp, int i ) : double
s int
t int
dir int
comp int
i int
return double

GetProbs() public method

public GetProbs ( int s, int t, int dir, int comp ) : double[]
s int
t int
dir int
comp int
return double[]

KBestParseForest() public method

public KBestParseForest ( int start, int end, DependencyInstance inst, int K ) : MSTParser
start int
end int
inst DependencyInstance
K int
return MSTParser

Property Details

Chart public_oe property

public ParseForestItem[,MSTParser Chart
return MSTParser.ParseForestItem[

RootType public_oe static_oe property

public static int RootType
return int