Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (49 sloc) 1.95 KB
<?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>',
'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;
Jump to Line
Something went wrong with that request. Please try again.