-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
executable file
·49 lines (32 loc) · 2 KB
/
README
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
Copyright 2011 Manuel Wahle
This file is part of Hello-Wiki.
Hello-Wiki is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Hello-Wiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Hello-Wiki. If not, see <http://www.gnu.org/licenses/>.
Experimenting with new random indexing methods and information retrieval
methods, the Wikipedia corpus turned out to be an intuitive base for
experiments. But I couldn't really find a tool that would extract the textual
information (stripped of all wiki markup) from the Wikipedia articles. So I
wrote a Java program, intended to be used as a library, to do this job.
Right now, there are two Java classes:
* Extractor.java, which does the actual job of loading and parsing the dump
file and extracting the articles
* MakeLuceneIndex.java, which uses the Extractor to walk through the complete
dump file and puts the contents into a Lucene index
The regular expressions that strip the wiki markup code are not exactly perfect
but were good enough for my purposes. I'm inviting anybody to use this project
and I'll happily include any improvements. Special thanks go to rvedam for
contributing the build.xml and getting me started on Java development.
Dependencies:
Currently, this project depends on the following libraries:
* Apache Lucene (currently version 6.6.0). You can download the Lucene library at
http://www.apache.org/dyn/closer.cgi/lucene/java/
Compilation Instructions (changed from MWahle's original instructions):
- Run "mvn clean install" in the root directory and inform dwiddows if there are problems.