Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sverrirab/icenews
Simple NLP for Icelandic News
https://github.com/sverrirab/icenews
icelandic nlp python
Last synced: about 1 month ago
JSON representation
Simple NLP for Icelandic News
- Host: GitHub
- URL: https://github.com/sverrirab/icenews
- Owner: sverrirab
- License: apache-2.0
- Created: 2019-03-30T06:23:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:55:41.000Z (over 1 year ago)
- Last Synced: 2024-12-09T22:18:11.302Z (about 1 month ago)
- Topics: icelandic, nlp, python
- Language: Python
- Homepage: https://api.helst.is/docs
- Size: 62.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# icenews
Simple NLP for Icelandic NewsThis project is aimed at extracting themes / concepts from simple
icelandic news text - headlines and such. This is used for example
by [helst.is](https://helst.is) for processing mainstream Icelandic
news media.[![travis](https://travis-ci.com/sverrirab/icenews.svg?token=xxFqtztRjZQMvihBaiGq&branch=master)](https://travis-ci.com/sverrirab/icenews)
# How to use
```bash
$ pip install icenews
$ python -m icenews
```And then when the web server is running - analyze your text. For example:
```bash
$ 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:
```bash
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](./docs/openapi.json).
# License
This project is released under the [Apache](./LICENSE) open source license.