https://github.com/brunneis/python-linguakit
Python wrapper for Linguakit's Perl implementation
https://github.com/brunneis/python-linguakit
conjugator dependency-parser language-recog multilingual multiword-extraction nlp nlp-library opinion-mining polarity pos-tagger sentiment-analysis summarizer
Last synced: 2 months ago
JSON representation
Python wrapper for Linguakit's Perl implementation
- Host: GitHub
- URL: https://github.com/brunneis/python-linguakit
- Owner: brunneis
- License: gpl-3.0
- Created: 2019-10-04T09:38:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T09:12:09.000Z (over 5 years ago)
- Last Synced: 2025-03-28T05:23:39.445Z (3 months ago)
- Topics: conjugator, dependency-parser, language-recog, multilingual, multiword-extraction, nlp, nlp-library, opinion-mining, polarity, pos-tagger, sentiment-analysis, summarizer
- Language: Python
- Homepage: https://linguakit.com/
- Size: 23.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-linguakit
## Local Installation
### Install dependencies (Ubuntu)
```bash
$ apt-get update \
&& apt-get -y install git build-essential zlib1g-dev \
&& cpan PerlIO::gzip \
&& cpan LWP::UserAgent
```### Install the Python wrapper
```bash
$ pip install linguakit
```
> After the installation, the first import of the `linguakit` package will trigger the download of `linguakit-streaming` with all the needed Perl scripts if they are not yet present.```bash
$ python -c "import linguakit"
Downloading linguakit-streaming...
[OK!]
Installing linguakit-streaming...
[OK!]
Installing the Python wrapper...
```## Docker Container
```bash
$ docker run -ti brunneis/python-linguakit
Python 3.7.3 (default, Jun 19 2019, 08:47:56)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
```## Existing Modules
### Sentiment#### `class linguakit.Sentiment(lang)`
##### `exec(input_text)````python
>>> from linguakit import Sentiment>>> sent = Sentiment('es')
>>> result = sent.exec('Hacía bastante que no salía del cine tan feliz. Gracias Christopher Nolan por @Interstellar, merece la pena cada una de las 3h que dura.')
>>> print(result)
{'polarity': 1, 'proba': '0.999866470435652'}
```