Python readme

This commit is contained in:
Anthony MOI
2019-11-01 19:42:36 -04:00
parent 6d91bf4005
commit 05cbb32eca
5 changed files with 18 additions and 5 deletions

View File

@ -523,15 +523,15 @@ dependencies = [
[[package]]
name = "tokenizers"
version = "0.1.0"
version = "0.0.1"
dependencies = [
"pyo3 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
"tokenizers-lib 0.1.0",
"tokenizers-lib 0.0.1",
]
[[package]]
name = "tokenizers-lib"
version = "0.1.0"
version = "0.0.1"
dependencies = [
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"onig 5.0.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "tokenizers"
version = "0.1.0"
version = "0.0.1"
authors = ["Anthony MOI <m.anthony.moi@gmail.com>"]
edition = "2018"

10
bindings/python/README.md Normal file
View File

@ -0,0 +1,10 @@
### Python Bindings
```
python3.7 -m venv .env
source .env/bin/activate
pip install maturin
maturin build
python example.py
```

View File

@ -0,0 +1,3 @@
from tokenizers import WhitespaceTokenizer
print(WhitespaceTokenizer.tokenize("Hey man!"))

View File

@ -1,6 +1,6 @@
[package]
name = "tokenizers-lib"
version = "0.1.0"
version = "0.0.1"
authors = ["Anthony MOI <m.anthony.moi@gmail.com>"]
edition = "2018"