forked from johsw/tagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.example.php
60 lines (50 loc) · 2.02 KB
/
conf.example.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
// Database connectiviy info.
$tagger_conf['db']['type'] = 'dbtype'; // sqlite mysql mssql
// Anything not SQLite
if($tagger_conf['db']['type'] != 'sqlite') {
$tagger_conf['db'] = array(
'name' => '<database name>',
'server' => '<server>',
'username' => '<username>',
'password' => '<password>',
'port' => '<port>', // Leave empty to fallback to default port number.
'type' => $tagger_conf['db']['type'],
);
} else {
$tagger_conf['db'] = array(
'path' => '<path to database>',
'type' => $tagger_conf['db']['type'],
);
}
// DATABASE TABLE NAMES ARE DEFINED AT END OF THIS FILE
// Names and ids of your vocabularies.
$tagger_conf['vocab_names'] = array(
13 => 'personer',
17 => 'steder',
15 => 'organisationer',
);
// Data sources for open linked data.
$tagger_conf['lod_sources'] = array(
1 => 'DBpedia',
2 => 'en.wikipedia.org',
3 => 'da.wikipedia.org',
4 => 'GeoNames',
5 => 'New York Times',
6 => 'NYT search api'
);
// The hostnames of the sites that you would like to be allowed to call the
// webservice. Leave an empty array if you want to allow access for all.
$tagger_conf['service_allow_referer'] = array('tagger.dk');
// Keyword-extraction configuration
$tagger_conf['keyword']['property'] = 'diff_outer_doc_freq';
$tagger_conf['keyword']['normalize'] = false;
// Database table names
$tagger_conf['db']['lookup_table'] = 'tagger_lookup';
$tagger_conf['db']['linked_data_table'] = 'tagger_linked_data_sources';
$tagger_conf['db']['disambiguation_table'] = 'tagger_disambiguation';
$tagger_conf['db']['unmatched_table'] = 'tagger_unmatched';
$stemmer_postfix = ($tagger_conf['keyword']['enable_stemmer'])? '_stem' : '';
$tagger_conf['db']['docstats_table'] = 'tagger_docstats';
$tagger_conf['db']['wordstats_table'] = 'tagger_wordstats' . $stemmer_postfix;
$tagger_conf['db']['word_relations_table'] = 'tagger_word_relations_' . $tagger_conf['keyword']['property'] . $stemmer_postfix;