Skip to content

Commit

Permalink
Update deps (#7)
Browse files Browse the repository at this point in the history
* Update deps

* Update pyproject.toml

* Update requirements-dev.txt

* Update README.md

* Update Cargo.toml

* Add notice
  • Loading branch information
vbkaisetsu committed Apr 12, 2023
1 parent fa9712f commit 283e32c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "python-vibrato"
version = "0.1.1"
version = "0.2.0"
edition = "2021"

[lib]
name = "vibrato"
crate-type = ["cdylib"]

[dependencies]
hashbrown = "0.13.1" # MIT or Apache-2.0
ouroboros = "0.15.5" # MIT or Apache-2.0
pyo3 = { version = "0.17.3", features = ["extension-module"] } # Apache-2.0
vibrato_rust = { package = "vibrato", version = "0.3.3", default-features = false } # MIT or Apache-2.0
hashbrown = "0.13.2" # MIT or Apache-2.0
ouroboros = "0.15.6" # MIT or Apache-2.0
pyo3 = { version = "0.18.2", features = ["extension-module"] } # Apache-2.0
vibrato_rust = { package = "vibrato", version = "0.5.0", default-features = false } # MIT or Apache-2.0
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Check the version number as shown below to use compatible models:
```python
import vibrato
vibrato.VIBRATO_VERSION
#=> "0.3.3"
#=> "0.5.0"
```

Examples:
Expand Down Expand Up @@ -79,6 +79,21 @@ tokens[0].end()
#=> 2
```

## Note for distributed models

The distributed models are compressed in zstd format. If you want to load these compressed models,
you must decompress them outside the API.

```python
import vibrato
import zstandard # zstandard package in PyPI

dctx = zstandard.ZstdDecompressor()
with open('path/to/system.dic.zst', 'rb') as fp:
dict_reader = dctx.stream_reader(fp)
tokenizer = vibrato.Vibrato(dict_reader.read())
```

## Documentation

Use the help function to show the API reference.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.13,<0.14"]
requires = ["maturin>=0.14,<0.15"]
build-backend = "maturin"

[project]
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest>=7.2.0
mypy>=0.991
pytest>=7.3.0
mypy>=1.2.0

0 comments on commit 283e32c

Please sign in to comment.