Topic Definitions » History » Version 12
Prokopis Prokopidis, 2016-12-06 12:43 PM
1 | 1 | Prokopis Prokopidis | # Topic Definitions |
---|---|---|---|
2 | 1 | Prokopis Prokopidis | |
3 | 1 | Prokopis Prokopidis | A topic definition in the context of ILSP-FC is a list of terms that "define" a topic. This list is provided at runtime in a text file where each line contains a term with the following fields: |
4 | 1 | Prokopis Prokopidis | |
5 | 1 | Prokopis Prokopidis | * weight (an integer, see below) for the term |
6 | 1 | Prokopis Prokopidis | * a `:` separator |
7 | 1 | Prokopis Prokopidis | * a (multi-word) term to be searched in a web document fetched by the crawler (in its main, non-boilerplate content, but also in its title and keywords) |
8 | 1 | Prokopis Prokopidis | * a `=` separator |
9 | 1 | Prokopis Prokopidis | * a string for one or more topics that the term corresponds to, separated by ";" |
10 | 1 | Prokopis Prokopidis | |
11 | 1 | Prokopis Prokopidis | If the targetted languages are more than 1, i.e. if you run a multilingual crawl, the following fields are also needed |
12 | 1 | Prokopis Prokopidis | |
13 | 8 | Prokopis Prokopidis | * a ">" separator |
14 | 8 | Prokopis Prokopidis | * a 2-digit iso language code for the language of the term |
15 | 8 | Prokopis Prokopidis | |
16 | 1 | Prokopis Prokopidis | This list is an external resource that must be created before running the crawl. |
17 | 1 | Prokopis Prokopidis | |
18 | 12 | Prokopis Prokopidis | One way to create it is to search for an available term list and manually modify it according to the format above. Suppose for example that a user needs to search for the topic "environment". Relevant (multilingual) lists can be downloaded from the [Eurovoc]:(http://eurovoc.europa.eu/). One issue with this approach is that the user should manually assign appropriate weights to each term. A simple heuristic is to assign the same weight (e.g. 100) to each term and assign lower weights to terms that may be ambiguous, i.e. terms that may correspond to multiple topics. |
19 | 1 | Prokopis Prokopidis | |
20 | 2 | Prokopis Prokopidis | Here's an extract for the `environment` topic for a monolingual crawl for Greek content. |
21 | 1 | Prokopis Prokopidis | |
22 | 2 | Prokopis Prokopidis | ``` |
23 | 1 | Prokopis Prokopidis | 70:"πράσινο" σήμα=περιβάλλον |
24 | 1 | Prokopis Prokopidis | 70:άγρια ζώα=περιβάλλον |
25 | 1 | Prokopis Prokopidis | 100:άγρια φυτά και ζώα=περιβάλλον |
26 | 1 | Prokopis Prokopidis | 70:άγριο θηλαστικό=περιβάλλον |
27 | 1 | Prokopis Prokopidis | 50:αγροτική καταστροφή=περιβάλλον |
28 | 1 | Prokopis Prokopidis | 50:άδεια για κυνήγι=περιβάλλον |
29 | 1 | Prokopis Prokopidis | 50:άδεια θήρας=περιβάλλον |
30 | 1 | Prokopis Prokopidis | 50:άδεια κυνηγίου=περιβάλλον |
31 | 1 | Prokopis Prokopidis | 50:άδεια μπαταρία=περιβάλλον |
32 | 1 | Prokopis Prokopidis | 100:άδεια ρύπανσης=περιβάλλον |
33 | 1 | Prokopis Prokopidis | 25:αειφόρος ανάπτυξη=περιβάλλον |
34 | 1 | Prokopis Prokopidis | 25:αέρια εξάτμισης αυτοκινήτων=περιβάλλον |
35 | 1 | Prokopis Prokopidis | 100:αέριο που προκαλεί το φαινόμενο του θερμοκηπίου=περιβάλλον |
36 | 1 | Prokopis Prokopidis | 100:αέριο που φθείρει το στρώμα του όζοντος=περιβάλλον |
37 | 2 | Prokopis Prokopidis | ``` |
38 | 1 | Prokopis Prokopidis | |
39 | 5 | Prokopis Prokopidis | At runtime, the crawler's classifier will be initialized with a stemmed version of the topic definition: |
40 | 5 | Prokopis Prokopidis | |
41 | 4 | Prokopis Prokopidis | |
42 | 4 | Prokopis Prokopidis | ``` |
43 | 1 | Prokopis Prokopidis | 70 πρασιν σημ περιβάλλον ell "πράσινο" σήμα |
44 | 1 | Prokopis Prokopidis | 70 αγρ ζωα περιβάλλον ell άγρια ζώα |
45 | 1 | Prokopis Prokopidis | 100 αγρ φυτ ζωα περιβάλλον ell άγρια φυτά και ζώα |
46 | 1 | Prokopis Prokopidis | 70 αγρι θηλαστ περιβάλλον ell άγριο θηλαστικό |
47 | 1 | Prokopis Prokopidis | 50 αγροτικ καταστροφ περιβάλλον ell αγροτική καταστροφή |
48 | 1 | Prokopis Prokopidis | 50 αδει θηρ περιβάλλον ell άδεια θήρας |
49 | 1 | Prokopis Prokopidis | 50 αδει κυνηγ περιβάλλον ell άδεια για κυνήγι |
50 | 1 | Prokopis Prokopidis | 50 αδει μπαταρ περιβάλλον ell άδεια μπαταρία |
51 | 1 | Prokopis Prokopidis | 100 αδει ρυπανσ περιβάλλον ell άδεια ρύπανσης |
52 | 1 | Prokopis Prokopidis | 25 αειφορ αναπτυξ περιβάλλον ell αειφόρος ανάπτυξη |
53 | 1 | Prokopis Prokopidis | 25 αερ εξατμισ αυτοκινητ περιβάλλον ell αέρια εξάτμισης αυτοκινήτων |
54 | 1 | Prokopis Prokopidis | 100 αερι προκαλ φαινομεν θερμοκηπ περιβάλλον ell αέριο που προκαλεί το φαινόμενο του θερμοκηπίου |
55 | 1 | Prokopis Prokopidis | 100 αερι φθειρ στρωμ οζοντ περιβάλλον ell αέριο που φθείρει το στρώμα του όζοντος |
56 | 4 | Prokopis Prokopidis | ``` |
57 | 1 | Prokopis Prokopidis | |
58 | 11 | Prokopis Prokopidis | The main content of each fetched web document found to be in the same language, is also stemmed and normalized. The classifier searches for the stemmed terms in the normalized content and a score is calculated as in section 3.5, Text Classifier of http://aclweb.org/anthology/W/W13/W13-2506.pdf. A number of thresholds that affect the way this score is calculated can be defined in the crawl's configuration file: |
59 | 6 | Prokopis Prokopidis | |
60 | 10 | Prokopis Prokopidis | ```xml |
61 | 9 | Prokopis Prokopidis | <classifier> |
62 | 9 | Prokopis Prokopidis | <min_content_terms> |
63 | 9 | Prokopis Prokopidis | <value>4</value> |
64 | 9 | Prokopis Prokopidis | <description>Minimum number of terms that must exist in clean |
65 | 9 | Prokopis Prokopidis | content of each web page in order to be stored.This number |
66 | 9 | Prokopis Prokopidis | is multiplied with the median value of the terms'weights and |
67 | 9 | Prokopis Prokopidis | the result is the threshold for the absolute relevance score.</description> |
68 | 9 | Prokopis Prokopidis | </min_content_terms> |
69 | 9 | Prokopis Prokopidis | <min_unique_content_terms> |
70 | 9 | Prokopis Prokopidis | <value>4</value> |
71 | 9 | Prokopis Prokopidis | <description>Minimum unique terms that must exist in clean content</description> |
72 | 9 | Prokopis Prokopidis | </min_unique_content_terms> |
73 | 9 | Prokopis Prokopidis | <relative_relevance_threshold> |
74 | 9 | Prokopis Prokopidis | <value>0.2</value> |
75 | 9 | Prokopis Prokopidis | <description>The absolute relevance score is divided by the length |
76 | 9 | Prokopis Prokopidis | (in terms of tokens) of the clean content of a document and the |
77 | 9 | Prokopis Prokopidis | calculated relative relevance score is compared with this value</description> |
78 | 9 | Prokopis Prokopidis | </relative_relevance_threshold> |
79 | 9 | Prokopis Prokopidis | </classifier> |
80 | 6 | Prokopis Prokopidis | ``` |