Metadata-Version: 2.1
Name: pyimporters-plugins
Version: 0.1.3
Summary: Sherpa knowledge import plugins
Home-page: https://kairntech.com/
License: UNKNOWN
Author: Olivier Terrier
Author-email: olivier.terrier@kairntech.com
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: Topic :: Internet
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development
Classifier: Typing :: Typed
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Internet :: WWW/HTTP
Requires-Dist: pydantic==1.7.3
Requires-Dist: stevedore==3.3.0
Requires-Dist: structlog
Requires-Dist: python-json-logger
Requires-Dist: python-dateutil<2.8.1
Requires-Dist: rdflib

## Setup

- install python3, pip and venv
```
sudo apt install python3
sudo apt install python3-pip
sudo apt install python3-venv
```
- create a venv
```
mkdir venv
python3 -m venv venv
source venv/bin/activate
```

- install requirements (inside venv)
```
# Manual install of sklearn
    pip --no-cache-dir --disable-pip-version-check install -r requirements_sklearn.txt

# Manual install of flair
    pip --no-cache-dir --disable-pip-version-check install Pillow==6.2.1 && \
    pip --no-cache-dir --disable-pip-version-check install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html && \
    pip --no-cache-dir --disable-pip-version-check install tiny_tokenizer==3.0.1 && \
    pip --no-cache-dir --disable-pip-version-check install deps/flair-0.4.5.1-py3-none-any.whl

# Manual install of delft-0.2.3.5-py3-none-any.whl
    pip --no-cache-dir --disable-pip-version-check install deps/delft-0.2.3.5-py3-none-any.whl && \
    pip --no-cache-dir --disable-pip-version-check install -r requirements.txt && \
    pip --no-cache-dir --disable-pip-version-check uninstall -y tensorflow-gpu && \
    pip --no-cache-dir --disable-pip-version-check install tensorflow==1.12.0

pip install -r requirements.txt
```

- Download spacy models (de, en, fr)7
```
    python3 -m spacy download de && \
    python3 -m spacy download en && \
    python3 -m spacy download fr
```

- launch (single instance)
```
python3 server.py
```



