/text2array

Python library to convert text dataset into arrays.

Primary LanguagePythonApache License 2.0Apache-2.0

text2array

Convert your NLP text data to arrays!

Python versions PyPI project Build status Documentation status Code coverage License Built with Spacemacs

text2array helps you process your NLP text dataset into Numpy ndarray objects that are ready to use for e.g. neural network inputs. text2array handles data shuffling, batching, padding, and converting into arrays. Say goodbye to these tedious works!

Documentation

https://text2array.readthedocs.io

Contributing

Pull requests are welcome! To start contributing, first install flit.

pip install flit

Next, install this library and its dependencies in development mode.

flit install --symlink

Lastly, setup the pre-commit hook.

ln -s ../../pre-commit.sh .git/hooks/pre-commit

Tests, the linter, and the type checker can be run with pytest, flake8, and mypy respectively.

License

Apache License, Version 2.0