summaryrefslogtreecommitdiff
path: root/defaults/yacy.init
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2015-08-10 14:27:44 +0200
committerMichael Peter Christen <mc@yacy.net>2015-08-10 14:27:44 +0200
commitdf3314ac1a15f1f78f1e9c3601b85ac28c42915d (patch)
treed92590578d116920845eba2586c605df6447a8ef /defaults/yacy.init
parentdbbad23e120183342346d76b489d5356027742ae (diff)
added a new facet type based on a probabilistic classifier using
bayesian filters. This can be used to classify documents during indexing-time using a pre-definied bayesian filter. New wordings: - a context is a class where different categories are possible. The context name is equal to a facet name. - a category is a facet type within a facet navigation. Each context must have several categories, at least one custom name (things you want to discover) and one with the exact name "negative". To use this, you must do: - for each context, you must create a directory within DATA/CLASSIFICATION with the name of the context (the facet name) - within each context directory, you must create text files with one document each per line for every categroy. One of these categories MUST have the name 'negative.txt'. Then, each new document is classified to match within one of the given categories for each context.
Diffstat (limited to 'defaults/yacy.init')
-rw-r--r--defaults/yacy.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/defaults/yacy.init b/defaults/yacy.init
index a238d2ed4..352f1b8c6 100644
--- a/defaults/yacy.init
+++ b/defaults/yacy.init
@@ -258,6 +258,12 @@ surrogates.out = DATA/SURROGATES/out
# this directory also contains subdirectories for input sources, the did-you-mean function and other
dictionaries = DATA/DICTIONARIES
+# a path to the classification directory
+# each subdirectory is the name of a context (which becomes a navigator) with '.txt' files
+# containing texts to teach a bayesian filter. One of the files must be named 'negative.txt'.
+# The text files can be created with the Export functionality using the option "Only Text".
+classification = DATA/CLASSIFICATION
+
# storage place for new releases
releases = DATA/RELEASE