Giter Site home page Giter Site logo

lucene-quickstarter's Introduction

Quickstarter for DBpedia Spotlight Lucene

You can use this repository for creating lucene backend index of DBpedia Spotlight in your language.

The repo is ready to use for the follow languages: catalan, german , greek , english, spanish, french , italian, dutch, polish, portuguese, hungarian and russian.

Why my language is not supported yet?

We are working on i18n support and you can help us on it. You just need update or create the stop words list and a black listed URI pattern (a small regex for disambiguation pages) for your target language. You can follow a lot of examples at /i18n folder.

Requirements

To create a new index you will require

  • Linux;
  • A good computer with enough memory (16 gb or more);
  • Maven;
  • Java 1.7;

How to run

  • Create or mount a new folder in /mnt called dbpedia. It is our workspace
  • Clone this repo locally inside /mnt/dbpedia;
  • Download the latest dump of Wikipedia. You can use the command line

./lucene-quickstarter/scripts/download_wikipedia.sh LANGUAGE_CODE

E.g: ./lucene-quickstarter/scripts/download_wikipedia.sh en for english

  • Download the DBpedia dumps, just typing

./lucene-quickstarter/scripts/download_dbpedia.sh.sh VERSION LANGUAGE_CODE

E.g: ./lucene-quickstarter/scripts/download_dbpedia.sh 3.9 en for english

Check if all files were successfully downloaded. From DBpedia, we must have all files (labels, disambiguations, redirects, short_abstracts, article_categories and instance_types). If some file is not available, ask for help in DBpedia mail list.

Finally

  • Run the indexer script

.lucene-quickstarter/scripts/run_index.sh VERSION LANGUAGE_CODE

If you are here, seems that you have a new index ready for use. If not, tell us opening an issue.

Supported Extraction Framework versions

  • 3.9 - stable

  • 4.0, 4.1 - working in progress

Supported Docker versions

This image is officially supported on Docker version 1.9.1.

Please see the [Docker installation documentation] (https://docs.docker.com/installation/) for details on how to upgrade your Docker daemon.

About

This repo is an original work from Pablo Mender (@pablomendes), Max Jakob (@maxjakob), Joachim Daiber (@jodaiber) and DBpedia Spotlight community. I'm just trying to turn index building with Lucene more easy.

lucene-quickstarter's People

Contributors

sacoelho avatar sandroacoelho avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.