#include <PDict.hpp>
Public Member Functions | |
| DictEntry () | |
| constructor | |
| DictEntry (const string &targ, const string &typ, double pr) | |
| constructor | |
| char * | toBytes (int &numBytes) const |
| Encode for binary writing. | |
| int | toBytes (char *buffer) const |
| Encode for binary writing. | |
| int | numBytes () const |
| Determine size needed to encode for binary writing. | |
| int | fromBytes (char *buffer) |
| Initialize from an array of bytes. | |
| bool | operator== (const DictEntry &a) const |
| Equality on target and type attributes only. | |
| string | toString (string delim=";") const |
Public Attributes | |
| string | target |
| The target language term. | |
| string | type |
| POS, etc. | |
| double | prob |
| freq or Prob | |
|
|
constructor
|
|
||||||||||||||||
|
constructor
|
|
|
Initialize from an array of bytes.
|
|
|
Determine size needed to encode for binary writing.
|
|
|
Equality on target and type attributes only.
|
|
|
Encode for binary writing.
|
|
|
Encode for binary writing.
|
|
|
|
|
|
freq or Prob
|
|
|
The target language term.
|
|
|
POS, etc.
|
1.3.4