TRF Language Model
hrf-model.h File Reference
#include "trf-model.h"

Go to the source code of this file.

Classes

class  hrf::Seq
 
class  hrf::AlgNode
 
class  hrf::Model
 hidden-random-field model More...
 
class  hrf::AlgLayer
 

Namespaces

 hrf
 

Macros

#define HHMap(h1, h2)   (int)((h1) * 2 + (h2))
 
#define HRF_VALUE_SET(p, m)
 
#define HRF_VALUE_GET(p, m)
 

Typedefs

typedef trf::PValue hrf::PValue
 
typedef float hrf::HValue
 
typedef trf::Prob hrf::Prob
 
typedef trf::LogP hrf::LogP
 
typedef trf::Vocab hrf::Vocab
 
typedef trf::VocabID hrf::VocabID
 

Macro Definition Documentation

§ HHMap

#define HHMap (   h1,
  h2 
)    (int)((h1) * 2 + (h2))

Definition at line 84 of file hrf-model.h.

§ HRF_VALUE_GET

#define HRF_VALUE_GET (   p,
  m 
)
Value:
memcpy(p, m.GetBuf(), sizeof(PValue)*m.GetSize()); \
p += m.GetSize();
trf::PValue PValue
Definition: hrf-model.h:24
pFunc Reset & m

Definition at line 89 of file hrf-model.h.

§ HRF_VALUE_SET

#define HRF_VALUE_SET (   p,
  m 
)
Value:
memcpy(m.GetBuf(), p, sizeof(PValue)*m.GetSize()); \
p += m.GetSize();
trf::PValue PValue
Definition: hrf-model.h:24
pFunc Reset & m

Definition at line 86 of file hrf-model.h.