Project

General

Profile

Getting Started » History » Version 13

Vassilis Papavassiliou, 2012-10-25 02:09 PM

1 1 Prokopis Prokopidis
h1. Getting Started
2 2 Prokopis Prokopidis
3 2 Prokopis Prokopidis
Once you [[DeveloperSetup|build]] or [[HowToGet|download]] an ilsp-fc runnable jar, you can run it like this
4 2 Prokopis Prokopidis
5 11 Prokopis Prokopidis
<pre><code>java -jar ilsp-fc-1.1-jar-with-dependencies.jar</code></pre>
6 2 Prokopis Prokopidis
7 2 Prokopis Prokopidis
h2. Run a monolingual crawl
8 2 Prokopis Prokopidis
9 13 Vassilis Papavassiliou
<pre><code>java -jar ilsp-fc-1.1-jar-with-dependencies.jar crawlandexport -a test1 -c 10 -f -k -lang de -t 10 -of output_test1_list.txt <br>-ofh  output_test1_list.txt.html -tc C:/PANACEA/AUTOMOTIVE/AUTO_DE/Automotive-seed-terms-de.txt  -u  C:/PANACEA/AUTOMOTIVE/Automotive-seed-urls.txt -type m -xslt -cfg C:/Users/vpapa/workspace/ilsp-fc/src/main/resources/FMC_config.xml</code></pre>
10 12 Vassilis Papavassiliou
11 2 Prokopis Prokopidis
h2. Run a bilingual crawl
12 12 Vassilis Papavassiliou
13 12 Vassilis Papavassiliou
<pre><code>java -jar ilsp-fc-1.1-jar-with-dependencies.jar crawlandexport -a test1 -c 10 -f -k -l1 de -l2 it -t 10 -of C:/PANACEA/test_HS_DE-IT_output.txt -ofh  C:/PANACEA/test_HS_DE-IT_output.txt.html  -tc C:/PANACEA/HS_DE_IT/HS_DE-IT_topic.txt -type p -xslt -u  C:/PANACEA/HS_DE_IT/suva_f/seed_suva.txt -cfg C:/Users/vpapa/workspace/ilsp-fc/src/main/resources/FBC_config.xml</code></pre>
14 12 Vassilis Papavassiliou
15 2 Prokopis Prokopidis
16 2 Prokopis Prokopidis
h2. Example of java code
17 9 Prokopis Prokopidis
18 2 Prokopis Prokopidis
<pre>
19 2 Prokopis Prokopidis
<code class="java">
20 2 Prokopis Prokopidis
package gr.ilsp.fmc.classifier;
21 2 Prokopis Prokopidis
22 2 Prokopis Prokopidis
public enum ClassifierCounters {
23 2 Prokopis Prokopidis
    CLASSIFIER_DOCUMENTS_PASSED,   // successfully classified a document.
24 1 Prokopis Prokopidis
    CLASSIFIER_DOCUMENTS_FAILED,   // failed to classify a document
25 2 Prokopis Prokopidis
    CLASSIFIER_DOCUMENTS_ABORTED, 
26 2 Prokopis Prokopidis
    CLASSIFIER_TIME
27 8 Prokopis Prokopidis
}</code></pre>
28 2 Prokopis Prokopidis
29 2 Prokopis Prokopidis
<pre>
30 1 Prokopis Prokopidis
<code class="xml">
31 2 Prokopis Prokopidis
<?xml version="1.0" encoding="UTF-8"?>
32 2 Prokopis Prokopidis
<configuration>
33 2 Prokopis Prokopidis
        <agent>
34 2 Prokopis Prokopidis
                <email>yourmail@mail.com</email>
35 2 Prokopis Prokopidis
                <web_address>www.youraddress.com</web_address>
36 2 Prokopis Prokopidis
        </agent>
37 8 Prokopis Prokopidis
</configuration></code></pre>