Skip to content

Commit ed903d0

Browse files
committed
Update README and deps
Max regex-syntax version is <0.7
1 parent b40f9f4 commit ed903d0

File tree

7 files changed

+278
-305
lines changed

7 files changed

+278
-305
lines changed

Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ edition = "2018"
55
license = "Apache-2.0"
66
authors = ["Thanathip Suntorntip Gorlph"]
77
description = "Thai natural language processing library, with Python and Node bindings"
8-
keywords = ["thai", "tokenizer", "nlp", "word-segmentation"]
9-
categories = ["text-processing"]
108
homepage = "https://github.com/PyThaiNLP/nlpo3/"
11-
documentation = "https://github.com/PyThaiNLP/nlpo3/"
9+
documentation = "https://github.com/PyThaiNLP/nlpo3/blob/main/README.md"
1210
repository = "https://github.com/PyThaiNLP/nlpo3/"
1311
readme = "README.md"
12+
keywords = ["thai", "tokenizer", "nlp", "word-segmentation"]
13+
categories = ["text-processing"]
1414
exclude = [
1515
".gitignore",
1616
".github/*",
@@ -34,14 +34,14 @@ path = "src/lib.rs"
3434
crate-type = ["cdylib", "rlib"]
3535

3636
[dependencies]
37-
anyhow = "1.0.45"
38-
binary-heap-plus = "0.4.1"
39-
bytecount = "0.6.2"
40-
lazy_static = "1.4.0"
41-
rayon = "1.5.1"
42-
regex = "1.5.4"
37+
anyhow = "1.0.93"
38+
binary-heap-plus = "0.5.0"
39+
bytecount = "0.6.8"
40+
lazy_static = "1.5.0"
41+
rayon = "1.10.0"
42+
regex = "1.11.1"
4343
rustc-hash = "1.1.0"
44-
regex-syntax = "0.6.25"
44+
regex-syntax = "0.6.29"
4545

4646
[[test]]
4747
name = "basic"

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ SPDX-License-Identifier: Apache-2.0
1010
Thai natural language processing library in Rust,
1111
with Python and Node bindings. Formerly oxidized-thainlp.
1212

13+
To use as a library in a Rust project:
14+
1315
```shell
14-
cargo install nlpo3
16+
cargo add nlpo3
1517
```
1618

19+
To use as a library in a Python project:
20+
1721
```shell
1822
pip install nlpo3
1923
```
@@ -87,13 +91,15 @@ See more at [nlpo3-python](./nlpo3-python/).
8791

8892
[![crates.io](https://img.shields.io/crates/v/nlpo3.svg "crates.io")](https://crates.io/crates/nlpo3/)
8993

90-
#### Install
94+
#### Add to dependency
95+
96+
To use as a library in a Rust project:
9197

9298
```shell
93-
cargo install nlpo3
99+
cargo add nlpo3
94100
```
95101

96-
In `Cargo.toml`:
102+
It will add "nlpo3" to `Cargo.toml`:
97103

98104
```toml
99105
[dependencies]

nlpo3-cli/Cargo.lock

Lines changed: 18 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nlpo3-cli/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "nlpo3-cli"
33
version = "0.2.1-dev"
44
edition = "2018"
5+
license = "Apache-2.0"
56
authors = ["Vee Satayamas <5ssgdxltv@relay.firefox.com>"]
67
description = "Command line interface for nlpO3, a Thai natural language processing library"
78
documentation = "https://github.com/PyThaiNLP/nlpo3/tree/main/nlpo3-cli/README.md"
@@ -11,12 +12,10 @@ readme = "README.md"
1112
keywords = ["thai", "tokenizer", "nlp", "word-segmentation", "cli"]
1213
categories = ["text-processing", "command-line-utilities"]
1314

14-
license = "Apache-2.0"
15-
1615
[[bin]]
1716
name = "nlpo3"
1817
path = "src/main.rs"
1918

2019
[dependencies]
21-
clap = { version = "3.0.0-beta.2" }
22-
nlpo3 = { version = "1.4.0" }
20+
clap = "3.0.0-beta.2"
21+
nlpo3 = "1.4.0"

0 commit comments

Comments
 (0)