Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
target: x86_64
- runner: ubuntu-latest
target: x86
# - runner: ubuntu-latest
# target: aarch64
- runner: ubuntu-latest
target: aarch64
- runner: ubuntu-latest
target: armv7
- runner: ubuntu-latest
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
with:
subject-path: 'wheels-*/*'
- name: Publish to PyPI
if: "startsWith(github.ref, 'refs/tags/')"
if: startsWith(github.ref, 'refs/tags/')
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
124 changes: 83 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lindera-py"
version = "0.35.0"
version = "0.38.0"
edition = "2021"
description = "Python binding for Lindera."
documentation = "https://docs.rs/lindera-py"
Expand All @@ -25,8 +25,8 @@ cc-cedict = ["lindera/cc-cedict"] # Include CC-CEDICT dictionary (Chinese)
compress = ["lindera/compress"] # Compress dictionaries

[dependencies]
pyo3 = { version = "0.22.5", features = ["extension-module"] }
serde = { version = "1.0.213", features = ["derive"] }
pyo3 = { version = "0.22.6", features = ["extension-module"] }
serde = { version = "1.0.214", features = ["derive"] }
serde_json = "1.0.132"

lindera = "0.35.0"
lindera = "0.38.0"
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ This command takes a long time because it builds a library that includes all the
## Example code

```python
from lindera import load_dictionary # type: ignore
from lindera import Tokenizer
from lindera import Segmenter, Tokenizer, load_dictionary


def main():
# load the dictionary
dictionary = load_dictionary("ipadic")
tokenizer = Tokenizer("normal", dictionary)

# create a segmenter
segmenter = Segmenter("normal", dictionary)

# create a tokenizer
tokenizer = Tokenizer(segmenter)

text = "関西国際空港限定トートバッグを東京スカイツリーの最寄り駅であるとうきょうスカイツリー駅で買う"
print(f"text: {text}\n")
Expand Down
Loading