Metadata-Version: 2.1
Name: kolibri-ml
Version: 1.1.12
Summary: Deep Learning and more NLP toolkit
Home-page: 
Author: Mohamed Ben Haddou
Author-email: mbenhaddou@mentis.io
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: kdmt (>=1.0.38)
Requires-Dist: scikit-learn (==1.1.3)
Requires-Dist: py-dateinfer
Requires-Dist: overrides
Requires-Dist: Pyaml
Requires-Dist: joblib
Requires-Dist: tabulate
Requires-Dist: psutil
Requires-Dist: imblearn
Requires-Dist: seaborn
Requires-Dist: packaging
Requires-Dist: httpcore
Requires-Dist: httpx
Requires-Dist: httpx[http2]
Requires-Dist: xlsxwriter
Provides-Extra: all
Requires-Dist: tensorflow ; extra == 'all'
Requires-Dist: fasttext ; extra == 'all'
Requires-Dist: wordcloud ; extra == 'all'
Requires-Dist: dateparser ; extra == 'all'
Requires-Dist: ipywidgets ; extra == 'all'
Requires-Dist: gensim ; extra == 'all'
Requires-Dist: pyLDAvis ; extra == 'all'
Requires-Dist: sonopy ; extra == 'all'
Provides-Extra: audio
Requires-Dist: sonopy ; extra == 'audio'
Provides-Extra: dnn
Requires-Dist: tensorflow ; extra == 'dnn'
Provides-Extra: nlp
Requires-Dist: gensim ; extra == 'nlp'
Requires-Dist: fasttext ; extra == 'nlp'
Requires-Dist: dateparser ; extra == 'nlp'
Provides-Extra: notebook
Requires-Dist: ipywidgets ; extra == 'notebook'
Requires-Dist: pyLDAvis ; extra == 'notebook'
Requires-Dist: wordcloud ; extra == 'notebook'

# Kolibri

A comprehensive multi modal machine learning platform
# Contents

```
├── README.md
├── config

```

- `README.md`: this documentation

# Setting up PyFreeLing in Mac OS Sierra

There are 4 types of dependencies:

- [Homebrew](https://brew.sh), a package manager to install software in Mac
- [FreeLing](http://nlp.lsi.upc.edu/freeling), an open source language analysis tool suite
- [Python 3](https://www.python.org)
- [lxml](http://lxml.de), a Python library to work with XML
- [libxml2](http://xmlsoft.org) and [libxslt](http://xmlsoft.org/libxslt) C libraries which are dependencies of `lxml`

## Install Homebrew

Follow [Neil Gee's guide](https://coolestguidesontheplanet.com/installing-homebrew-on-macos-sierra-package-manager-for-unix-apps) to install and set up homebrew for Mac OS Sierra

## Install FreeLing

Use Homebrew to install FreeLing by running this command:

```bash
brew install freeling
```

Homebrew will take care of any dependencies.

## Install Python 3

You can install Python 3 with Homebrew following the instructions from [The Hitchhiker's Guide to Python](http://python-guide-pt-br.readthedocs.io/en/latest/starting/install3/osx/) or following the very complete [Lisa Tagliaferri's guide](https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-macos).

Basically:

```bash
brew install python3
```

## Install libxml2 and libxslt

macOS Sierra already provides `libxml2` and `libxslt`. They can be installed through Homebrew though:

```bash
brew install libxml2
brew install libxslt
```

## Install lxml

Now, you are ready to install `lxml`:

```bash
pip3 install lxml
```



Once you have installed FreeLing and all the dependencies, you will always need to start a FreeLing analyzer in server mode


## Starting a FreeLing analyzer in server mode


```bash
analyze -f en.cfg --server --port 50005 &
```


# Install pyaudio

## install pyaudio in Windows
Intalling pyaudiocan be tricky in window platform and generally 'pip install pyaudio' will not work.
see the following stackoverflow response if you have any problem.

https://stackoverflow.com/questions/52283840/i-cant-install-pyaudio-on-windows-how-to-solve-error-microsoft-visual-c-14

## Install pyaudio in mac os x

First install portaudio

```bash
brew install portaudio 
```
the run the following command
```bash
pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio
```

# install pocketsphinx

Instaaling this library could be difficult on some systems.
If the command:
```bash
pip install pocketsphinx 
```
did not work for you then try the following steps
```bash
git clone --recursive https://github.com/bambocher/pocketsphinx-python
cd pocketsphinx-python
```

Edit file pocketsphinx-python/deps/sphinxbase/src/libsphinxad/ad_openal.c.

Change
```
#include <al.h>
#include <alc.h>
```

to
```
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
```
and finally:
```bash
python setup.py install
```
