Menu

First Application

Michael Matthews

First Application

Running the testbed

apps/testbed conf/testbed/tutorial-application.xml

What happened?

  1. 197 text files and 127 image files where extracted from the arc files located
    in corpora/examples/smallarc and copied to devapps/example/data/lkxml/
  2. The OpenNLP and SST analysis tools were run on all 197 text files with the output stored to devapps/example/data/lkxml/
  3. HTML visualization files for the analysis were created in devapps/example/data/html/
  4. The resulting analysis was converted to a solr compatible index file created in devapps/example/data/solr/
  5. This file was fed to the solr index

How did this happen?

The processing was controlled by the conf/testbed/tutorial-application.xml configuration file. We will learn how to modify this file in future sections.

<lk-application logDir="log" appDir="devapps/example">
    <corpus dir="corpora/examples/smallarc" format="arc"/>
    <image-pipeline>
        <annotators>
        </annotators>
    </image-pipeline>
    <pipeline>
        <annotators>
            <annotator exec="./opennlp"/>
            <annotator exec="./sst"/>
        </annotators>
    </pipeline>
    <visualize/>
    <indexer solrHomeDir="solr/solr" solrDataDir="solr/solr/data"
                 converter="conf/testbed/tutorial-lk2solr.xml"/>
    <searcher appTitle="LivingKnowledge  - Example Application"
              appShortTitle="Example Application"
              appUrl="http://localhost:8983/solr/">
        <facets>
            <facet field="per" description="Person"/>
            <facet field="loc" description="Location"/>
        </facets>
    </searcher>
</lk-application>

Deploy the web application

ant deploy-testbed

Now a solr server has been started at http://localhost:8983/solr and a web application is running at http://localhost:8983/testbed

Formats and Conventions


Adding new analysis tools


Related

Wiki: Directory Structure
Wiki: FirstAppPipeline
Wiki: GettingStarted
Wiki: LkXml
Wiki: Tutorial

MongoDB Logo MongoDB