dca_interface  6.3.4
text_classification_result.h
Go to the documentation of this file.
1 /* IBM Source Code */
2 /* (C) Copyright IBM Corp. 2009, 2012 */
3 /* Licensed Materials - Property of IBM */
4 /* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5 
6 #ifndef TEXT_CLASSIFICATION_RESULT_H
7 #define TEXT_CLASSIFICATION_RESULT_H
8 
15 namespace dca {
16 
17  class tc_result;
18 
28  {
29  public:
33  TextClassificationResult& operator = ( const TextClassificationResult& rhi );
34  virtual ~TextClassificationResult();
36 
38  double score() const;
41 
43  PRIVATE_PTR tc_result *_p;
44  };
45 
46 }
47 
48 #endif
Single result of a text classification.
double score() const
Returns the score of the classification (if any), range is from 0.0 to 1.0.
DCA_CATEGORY_ID_TYPE id() const
Returns the category id of the classification (if any).
int DCA_CATEGORY_ID_TYPE
Type for category ids.
Definition: base_types.h:31
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83