sverrirab / icenews

Simple NLP for Icelandic News

Home Page:https://api.helst.is/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icenews

Simple NLP for Icelandic News

This project is aimed at extracting themes / concepts from simple icelandic news text - headlines and such. This is used for example by helst.is for processing mainstream Icelandic news media.

travis

How to use

$ pip install icenews
$ python -m icenews

And then when the web server is running - analyze your text. For example:

$ python
>>> import requests
>>> t = 'Áformað er að taka upp nýtt greiðslukerfi fyrir Strætó á næstunni.'
>>> r = requests.post('http://127.0.0.1:5000/v1/parse', json={'in': t}) 
>>> print(r.json())
{'important_words': ['greiðslukerfi', 'strætó', 'upp', 'á næstunni', 'áforma', 'áformaður', 'nýr', 'nýta']}

Use with container

If you prefer you can also load the prebuilt container and run locally:

docker run -d -p 5000:5000 --rm --name icenews sverrirab/icenews

Now with API documentation!

If you run the server locally you can view the documentation locally by visiting http://localhost:5000/docs - You can view the OpenAPI specification here.

License

This project is released under the Apache open source license.

About

Simple NLP for Icelandic News

https://api.helst.is/docs

License:Apache License 2.0


Languages

Language:Python 98.8%Language:Makefile 0.9%Language:Dockerfile 0.3%