TRF Language Model
trf::FeatStyle Class Reference

Analyse a determinate feat style (without ":") More...

#include <trf-feature.h>

Classes

struct  Field
 

Public Member Functions

 FeatStyle ()
 
 FeatStyle (const char *pstyle)
 
void Set (const char *pstyle)
 set and analyze the style More...
 
bool GetKey (Seq &seq, int nPos, int nOrder, Array< int > &key)
 map a ngram to the index key, return if get a correct key More...
 

Public Attributes

int m_nOrder
 the total order of this style, including the skip distance More...
 
Array< Fieldm_aFields
 each field More...
 

Detailed Description

Analyse a determinate feat style (without ":")

Definition at line 91 of file trf-feature.h.

Constructor & Destructor Documentation

§ FeatStyle() [1/2]

trf::FeatStyle::FeatStyle ( )
inline

Definition at line 103 of file trf-feature.h.

§ FeatStyle() [2/2]

trf::FeatStyle::FeatStyle ( const char *  pstyle)
inline

Definition at line 104 of file trf-feature.h.

Member Function Documentation

§ GetKey()

bool trf::FeatStyle::GetKey ( Seq seq,
int  nPos,
int  nOrder,
Array< int > &  key 
)

map a ngram to the index key, return if get a correct key

Definition at line 92 of file trf-feature.cpp.

§ Set()

void trf::FeatStyle::Set ( const char *  pstyle)

set and analyze the style

Definition at line 67 of file trf-feature.cpp.

Member Data Documentation

§ m_aFields

Array<Field> trf::FeatStyle::m_aFields

each field

Definition at line 101 of file trf-feature.h.

§ m_nOrder

int trf::FeatStyle::m_nOrder

the total order of this style, including the skip distance

Definition at line 100 of file trf-feature.h.


The documentation for this class was generated from the following files: