Coder Social home page Coder Social logo

rharige / twitter_nlp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aritter/twitter_nlp

0.0 1.0 0.0 133.11 MB

Twitter NLP Tools

License: GNU General Public License v3.0

Shell 0.03% Perl 0.01% Python 0.49% C 0.84% Makefile 0.01% Batchfile 0.01% HTML 86.24% CSS 0.01% Java 12.31% C++ 0.05% XSLT 0.01%

twitter_nlp's Introduction

Twitter NLP Named Entity Recognition HTTP Service

Added a simple HTTP API to get NER tagged tweets using @ritter's twitter_nlp library (https://github.com/aritter/twitter_nlp)

Example Usage:

export TWITTER_NLP=./
python python/ner/service.py

Note: this takes a minute or so to read in models from files. The api endpoint settings like hostname, port number, application name, etc. can be configured in service.py file itself. To include classification, pos, chunk feature - there are boolean flags in extractEntities2.py module, please change the values accordingly and run the service.py.

Example function on how to invoke the service.

   def get_tagged_tweets(list_of_tweets):
		data = {'tweets': list_of_tweets}
		headers = {'content-type': 'application/json'}
		url = "http://localhost:9011/twitner/api/get_tags"
		resp = requests.get(url, params=data, headers=headers)
		js_resp = json.loads(resp.text).get('result')
		return js_resp

Output of the API is in JSON format.

twitter_nlp's People

Contributors

aritter avatar rharige 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.