Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README and deps #72

Merged
merged 1 commit into from
Nov 10, 2024
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
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ edition = "2018"
license = "Apache-2.0"
authors = ["Thanathip Suntorntip Gorlph"]
description = "Thai natural language processing library, with Python and Node bindings"
keywords = ["thai", "tokenizer", "nlp", "word-segmentation"]
categories = ["text-processing"]
homepage = "https://github.com/PyThaiNLP/nlpo3/"
documentation = "https://github.com/PyThaiNLP/nlpo3/"
documentation = "https://github.com/PyThaiNLP/nlpo3/blob/main/README.md"
repository = "https://github.com/PyThaiNLP/nlpo3/"
readme = "README.md"
keywords = ["thai", "tokenizer", "nlp", "word-segmentation"]
categories = ["text-processing"]
exclude = [
".gitignore",
".github/*",
Expand All @@ -34,14 +34,14 @@ path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]

[dependencies]
anyhow = "1.0.45"
binary-heap-plus = "0.4.1"
bytecount = "0.6.2"
lazy_static = "1.4.0"
rayon = "1.5.1"
regex = "1.5.4"
anyhow = "1.0.93"
binary-heap-plus = "0.5.0"
bytecount = "0.6.8"
lazy_static = "1.5.0"
rayon = "1.10.0"
regex = "1.11.1"
rustc-hash = "1.1.0"
regex-syntax = "0.6.25"
regex-syntax = "0.6.29"

[[test]]
name = "basic"
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ SPDX-License-Identifier: Apache-2.0
Thai natural language processing library in Rust,
with Python and Node bindings. Formerly oxidized-thainlp.

To use as a library in a Rust project:

```shell
cargo install nlpo3
cargo add nlpo3
```

To use as a library in a Python project:

```shell
pip install nlpo3
```
Expand Down Expand Up @@ -87,13 +91,15 @@ See more at [nlpo3-python](./nlpo3-python/).

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

#### Install
#### Add to dependency

To use as a library in a Rust project:

```shell
cargo install nlpo3
cargo add nlpo3
```

In `Cargo.toml`:
It will add "nlpo3" to `Cargo.toml`:

```toml
[dependencies]
Expand Down
61 changes: 18 additions & 43 deletions nlpo3-cli/Cargo.lock

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

7 changes: 3 additions & 4 deletions nlpo3-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "nlpo3-cli"
version = "0.2.1-dev"
edition = "2018"
license = "Apache-2.0"
authors = ["Vee Satayamas <[email protected]>"]
description = "Command line interface for nlpO3, a Thai natural language processing library"
documentation = "https://github.com/PyThaiNLP/nlpo3/tree/main/nlpo3-cli/README.md"
Expand All @@ -11,12 +12,10 @@ readme = "README.md"
keywords = ["thai", "tokenizer", "nlp", "word-segmentation", "cli"]
categories = ["text-processing", "command-line-utilities"]

license = "Apache-2.0"

[[bin]]
name = "nlpo3"
path = "src/main.rs"

[dependencies]
clap = { version = "3.0.0-beta.2" }
nlpo3 = { version = "1.4.0" }
clap = "3.0.0-beta.2"
nlpo3 = "1.4.0"
Loading
Loading