dca_interface
6.3.4
home
build
tmp
dcatmp18664
pkgdevel
dca
include
dca
text_classification
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
27
class
TextClassificationResult
28
{
29
public
:
31
TextClassificationResult
();
32
TextClassificationResult
(
const
TextClassificationResult
& rhi );
33
TextClassificationResult
& operator = (
const
TextClassificationResult
& rhi );
34
virtual
~
TextClassificationResult
();
36
38
double
score
()
const
;
40
DCA_CATEGORY_ID_TYPE
id
()
const
;
41
43
PRIVATE_PTR
tc_result *_p;
44
};
45
46
}
47
48
#endif
dca::TextClassificationResult
Single result of a text classification.
Definition:
text_classification_result.h:28
dca::TextClassificationResult::score
double score() const
Returns the score of the classification (if any), range is from 0.0 to 1.0.
dca::TextClassificationResult::id
DCA_CATEGORY_ID_TYPE id() const
Returns the category id of the classification (if any).
DCA_CATEGORY_ID_TYPE
int DCA_CATEGORY_ID_TYPE
Type for category ids.
Definition:
base_types.h:31
PRIVATE_PTR
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition:
base_types.h:83
Generated by
1.8.18