Giter Site home page Giter Site logo

cloudxtreme / chambua Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ushahidi/chambua

0.0 1.0 0.0 53.55 MB

Chambua is an open-source semantic tagging application that analyses text and extracts names of people, places (& geocodes them), organisations and other items such as expressions of time, money, nationality and religion

License: GNU Affero General Public License v3.0

Java 100.00%

chambua's Introduction

#Chambua Chambua is an open-source semantic tagging application. By exposing a simple REST API, it provides a convenient way to analyse text and extract words/terms that can be classified as people, places & organisations. It can also recognise nationalities, religions, expressions of time and monetary values.

The semantic extraction layer is powered by Stanford CoreNLP natural language analysis toolset

Installation

To install Chambua on your system, the following packages must be installed:

1. Download the Stanford NER Models

Stanford CoreNLP provides a set of pre-trained classifiers. These can be downloaded from here. The trained classifiers can be found in the classifiers directory of the extracted archive

2. Checkout the code from GitHub

git clone git://github.com/ushahidi/Chambua.git

3. Configure chambua.properties

  • Create $CHAMBUA_HOME

      mkdir -p /etc/chambua
      export CHAMBUA_HOME=/etc/chambua
    
  • Create chambua.properties

      cp src/main/resources/chambua.properties.sample /etc/chambua/chambua.properties
    

    Open chambua.properties and point chambua.classifier.dir to the directory with Stanford CoreNLP classifers extracted from the archive you dowloaded in Step (1) above.

Build and Deploy

mvn tomcat7:run-war

Using the REST API

Chambua exposes a single endpoint - /v1/tags - that accepts HTTP POST requests.

NOTE: For the following examples to work, you have to be in the directory where you cloned the project

To use the build you have just created in the preceding step:

curl -H "Content-Type:application/json" -X POST -d @data/sample_001.txt http://localhost:8080/chambua/v1/tags

Alternatively, you can use our publicly hosted Chambua install:

curl -H "Content-Type:application/json" -X POST -d @data/sample_001.txt http://chambua.ushahidi.com/v1/tags

Authors

chambua's People

Contributors

chrismetcalf avatar ekala avatar michalbcz avatar pcjericks avatar

Watchers

 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.