C# Class MSTParser.DependencyPipe

Afficher le fichier Open project: rasoolims/MSTParserCSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
CreateForest bool
DataAlphabet Alphabet
Labeled bool
TypeAlphabet Alphabet
Types string[]
TypesInt int[]

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
CreateAlphabet ( string file ) : void

Method Details

Add() public méthode

public Add ( string feat, double val, FeatureVector fv ) : void
feat string
val double
fv FeatureVector
Résultat void

AddNewFeature() public méthode

public AddNewFeature ( int index, double val, FeatureVector fv ) : void
index int
val double
fv FeatureVector
Résultat void

CloseAlphabets() public méthode

public CloseAlphabets ( ) : void
Résultat void

CreateFeatureVector() public méthode

public CreateFeatureVector ( string toks, string pos, string labs, int deps ) : FeatureVector
toks string
pos string
labs string
deps int
Résultat FeatureVector

CreateFeatureVector() public méthode

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
Résultat FeatureVector

CreateFeatureVector() public méthode

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
Résultat FeatureVector

CreateInstance() public méthode

public CreateInstance ( StreamReader reader ) : DependencyInstance
reader System.IO.StreamReader
Résultat DependencyInstance

CreateInstance() public méthode

public CreateInstance ( string &toks, string &pos, string &labs, int &deps ) : DependencyInstance
toks string
pos string
labs string
deps int
Résultat DependencyInstance

CreateInstances() public méthode

public CreateInstances ( string fileName, string featFileName ) : DependencyInstance[]
fileName string
featFileName string
Résultat DependencyInstance[]

DependencyPipe() public méthode

public DependencyPipe ( ) : System
Résultat System

DependencyPipe() public méthode

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

GetFeatureVector() public méthode

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
Résultat void

Normalize() public méthode

public Normalize ( string s ) : string
s string
Résultat string

ReadFeatureVector() public méthode

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
Résultat DependencyInstance

ReadLines() public méthode

public ReadLines ( StreamReader reader ) : string[][]
reader StreamReader
Résultat string[][]

ReadLines() public méthode

public ReadLines ( string &toks, string &pos, string &labels, int &deps ) : void
toks string
pos string
labels string
deps int
Résultat void

SetLabeled() public méthode

public SetLabeled ( string file ) : void
file string
Résultat void

WritePossibleFeatures() public méthode

public WritePossibleFeatures ( DependencyInstance inst, BinaryWriter writer ) : void
inst DependencyInstance
writer BinaryWriter
Résultat void

setLabel() public méthode

public setLabel ( bool label ) : void
label bool
Résultat void

Property Details

CreateForest public_oe property

public bool CreateForest
Résultat bool

DataAlphabet public_oe property

public Alphabet DataAlphabet
Résultat Alphabet

Labeled public_oe property

public bool Labeled
Résultat bool

TypeAlphabet public_oe property

public Alphabet TypeAlphabet
Résultat Alphabet

Types public_oe property

public string[] Types
Résultat string[]

TypesInt public_oe property

public int[] TypesInt
Résultat int[]