Public Member Functions | Public Attributes
CRFSuite::Attribute Class Reference

Tuple of attribute and its value. More...

List of all members.

Public Member Functions

 Attribute ()
 Construct an attribute with the default name and value.
 Attribute (const std::string &name)
 Construct an attribute with the default value.
 Attribute (const std::string &name, double val)
 Construct an attribute.

Public Attributes

std::string attr
 Attribute.
double value
 Attribute value (weight).

Detailed Description

Tuple of attribute and its value.


Constructor & Destructor Documentation

CRFSuite::Attribute::Attribute ( const std::string &  name) [inline]

Construct an attribute with the default value.

Parameters:
nameThe attribute name.
CRFSuite::Attribute::Attribute ( const std::string &  name,
double  val 
) [inline]

Construct an attribute.

Parameters:
nameThe attribute name.
valThe attribute value.

Copyright (c) 2002-2011 by Naoaki Okazaki
Thu Aug 11 2011 12:37:07