Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tindzk/tweetner
HTTP micro-service to recognise named entities in tweets
https://github.com/tindzk/tweetner
named-entity-recognition ner python tweet tweets twitter
Last synced: 3 days ago
JSON representation
HTTP micro-service to recognise named entities in tweets
- Host: GitHub
- URL: https://github.com/tindzk/tweetner
- Owner: tindzk
- Created: 2018-03-07T18:31:26.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T18:35:10.000Z (almost 7 years ago)
- Last Synced: 2025-02-06T17:55:20.264Z (5 days ago)
- Topics: named-entity-recognition, ner, python, tweet, tweets, twitter
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TweetNER
This project provides an HTTP micro-service to recognise named entities in tweets. It is based on [tweepy](https://github.com/tweepy/tweepy), [spaCy](https://spacy.io/) and [Flask](http://flask.pocoo.org/).## Dependencies
```shell
pip3 install -r requirements.txt
python3 -m spacy download en
```## Configuration
Register a new Twiter app [here](https://apps.twitter.com/app/new) and set the following environment variables:```shell
export TWITTER_CONSUMER_KEY=...
export TWITTER_CONSUMER_SECRET=...export TWITTER_OAUTH_TOKEN=...
export TWITTER_OAUTH_TOKEN_SECRET=...
```## Running
```shell
python3 classify.pycurl -i -H \
"Content-Type: application/json" \
-X POST \
-d '{"tweet_id": "969287797214531590"}' \
http://localhost:5000/classify
```The result is as follows:
```http
HTTP/1.0 200 OK
Content-Type: application/json
Content-Length: 45
Server: Werkzeug/0.14.1 Python/3.6.4
Date: Wed, 07 Mar 2018 18:21:13 GMT[
[
"Jack Dorsey",
"PERSON"
]
]
```## Licence
TweetNER is licensed under the terms of the Apache v2.0 licence.## Contributors
* Tim Nieradzik