C# 클래스 MSTParser.DependencyPipe

파일 보기 프로젝트 열기: rasoolims/MSTParserCSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CreateForest bool
DataAlphabet Alphabet
Labeled bool
TypeAlphabet Alphabet
Types string[]
TypesInt int[]

공개 메소드들

메소드 설명
Add ( string feat, double val, FeatureVector fv ) : void
AddNewFeature ( int index, double val, FeatureVector fv ) : void
CloseAlphabets ( ) : void
CreateFeatureVector ( string toks, string pos, string labs, int deps ) : FeatureVector
CreateFeatureVector ( string toks, string pos, string posA, int small, int large, bool attR, FeatureVector fv ) : FeatureVector
CreateFeatureVector ( string toks, string pos, string posA, int word, string type, bool attR, bool childFeatures, FeatureVector fv ) : FeatureVector
CreateInstance ( StreamReader reader ) : DependencyInstance
CreateInstance ( string &toks, string &pos, string &labs, int &deps ) : DependencyInstance
CreateInstances ( string fileName, string featFileName ) : DependencyInstance[]
DependencyPipe ( ) : System
DependencyPipe ( bool createForest ) : System

Initializes a new instance of the DependencyPipe class.

GetFeatureVector ( DependencyInstance inst, FeatureVector fvs, double probs, FeatureVector ntFvs, double ntProbs, Parameters parameters ) : void
Normalize ( string s ) : string
ReadFeatureVector ( BinaryReader reader, DependencyInstance inst, FeatureVector fvs, double probs, FeatureVector ntFvs, double ntProbs, Parameters parameters ) : DependencyInstance
ReadLines ( StreamReader reader ) : string[][]
ReadLines ( string &toks, string &pos, string &labels, int &deps ) : void
SetLabeled ( string file ) : void
WritePossibleFeatures ( DependencyInstance inst, BinaryWriter writer ) : void
setLabel ( bool label ) : void

비공개 메소드들

메소드 설명
CreateAlphabet ( string file ) : void

메소드 상세

Add() 공개 메소드

public Add ( string feat, double val, FeatureVector fv ) : void
feat string
val double
fv FeatureVector
리턴 void

AddNewFeature() 공개 메소드

public AddNewFeature ( int index, double val, FeatureVector fv ) : void
index int
val double
fv FeatureVector
리턴 void

CloseAlphabets() 공개 메소드

public CloseAlphabets ( ) : void
리턴 void

CreateFeatureVector() 공개 메소드

public CreateFeatureVector ( string toks, string pos, string labs, int deps ) : FeatureVector
toks string
pos string
labs string
deps int
리턴 FeatureVector

CreateFeatureVector() 공개 메소드

public CreateFeatureVector ( string toks, string pos, string posA, int small, int large, bool attR, FeatureVector fv ) : FeatureVector
toks string
pos string
posA string
small int
large int
attR bool
fv FeatureVector
리턴 FeatureVector

CreateFeatureVector() 공개 메소드

public CreateFeatureVector ( string toks, string pos, string posA, int word, string type, bool attR, bool childFeatures, FeatureVector fv ) : FeatureVector
toks string
pos string
posA string
word int
type string
attR bool
childFeatures bool
fv FeatureVector
리턴 FeatureVector

CreateInstance() 공개 메소드

public CreateInstance ( StreamReader reader ) : DependencyInstance
reader System.IO.StreamReader
리턴 DependencyInstance

CreateInstance() 공개 메소드

public CreateInstance ( string &toks, string &pos, string &labs, int &deps ) : DependencyInstance
toks string
pos string
labs string
deps int
리턴 DependencyInstance

CreateInstances() 공개 메소드

public CreateInstances ( string fileName, string featFileName ) : DependencyInstance[]
fileName string
featFileName string
리턴 DependencyInstance[]

DependencyPipe() 공개 메소드

public DependencyPipe ( ) : System
리턴 System

DependencyPipe() 공개 메소드

Initializes a new instance of the DependencyPipe class.
public DependencyPipe ( bool createForest ) : System
createForest bool if set to true [create forest].
리턴 System

GetFeatureVector() 공개 메소드

public GetFeatureVector ( DependencyInstance inst, FeatureVector fvs, double probs, FeatureVector ntFvs, double ntProbs, Parameters parameters ) : void
inst DependencyInstance
fvs FeatureVector
probs double
ntFvs FeatureVector
ntProbs double
parameters Parameters
리턴 void

Normalize() 공개 메소드

public Normalize ( string s ) : string
s string
리턴 string

ReadFeatureVector() 공개 메소드

public ReadFeatureVector ( BinaryReader reader, DependencyInstance inst, FeatureVector fvs, double probs, FeatureVector ntFvs, double ntProbs, Parameters parameters ) : DependencyInstance
reader BinaryReader
inst DependencyInstance
fvs FeatureVector
probs double
ntFvs FeatureVector
ntProbs double
parameters Parameters
리턴 DependencyInstance

ReadLines() 공개 메소드

public ReadLines ( StreamReader reader ) : string[][]
reader StreamReader
리턴 string[][]

ReadLines() 공개 메소드

public ReadLines ( string &toks, string &pos, string &labels, int &deps ) : void
toks string
pos string
labels string
deps int
리턴 void

SetLabeled() 공개 메소드

public SetLabeled ( string file ) : void
file string
리턴 void

WritePossibleFeatures() 공개 메소드

public WritePossibleFeatures ( DependencyInstance inst, BinaryWriter writer ) : void
inst DependencyInstance
writer BinaryWriter
리턴 void

setLabel() 공개 메소드

public setLabel ( bool label ) : void
label bool
리턴 void

프로퍼티 상세

CreateForest 공개적으로 프로퍼티

public bool CreateForest
리턴 bool

DataAlphabet 공개적으로 프로퍼티

public Alphabet DataAlphabet
리턴 Alphabet

Labeled 공개적으로 프로퍼티

public bool Labeled
리턴 bool

TypeAlphabet 공개적으로 프로퍼티

public Alphabet TypeAlphabet
리턴 Alphabet

Types 공개적으로 프로퍼티

public string[] Types
리턴 string[]

TypesInt 공개적으로 프로퍼티

public int[] TypesInt
리턴 int[]