-
Notifications
You must be signed in to change notification settings - Fork 53
/
config.php
34 lines (27 loc) · 1.26 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Global Constants.
*/
$plugin_version = '3.2.0';
// Useful global constants
classifai_define( 'CLASSIFAI_PLUGIN', __DIR__ . '/classifai.php' );
classifai_define( 'CLASSIFAI_PLUGIN_VERSION', $plugin_version );
classifai_define( 'CLASSIFAI_PLUGIN_DIR', __DIR__ );
classifai_define( 'CLASSIFAI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
classifai_define( 'CLASSIFAI_PLUGIN_BASENAME', plugin_basename( __DIR__ . '/classifai.php' ) );
// IBM Watson constants
// API - https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-release-notes#active-version-dates
classifai_define( 'WATSON_NLU_VERSION', '2022-08-10' );
// Taxonomies
classifai_define( 'WATSON_CATEGORY_TAXONOMY', 'watson-category' );
classifai_define( 'WATSON_KEYWORD_TAXONOMY', 'watson-keyword' );
classifai_define( 'WATSON_ENTITY_TAXONOMY', 'watson-entity' );
classifai_define( 'WATSON_CONCEPT_TAXONOMY', 'watson-concept' );
// Misc defaults
classifai_define( 'WATSON_TIMEOUT', 60 ); // seconds
classifai_define( 'WATSON_KEYWORD_LIMIT', 10 );
// Default Thresholds
classifai_define( 'WATSON_CATEGORY_THRESHOLD', 70 );
classifai_define( 'WATSON_KEYWORD_THRESHOLD', 70 );
classifai_define( 'WATSON_ENTITY_THRESHOLD', 70 );
classifai_define( 'WATSON_CONCEPT_THRESHOLD', 70 );