Skip to content

Commit

Permalink
Merge pull request #70 from bact/reduce-readme
Browse files Browse the repository at this point in the history
Link to READMEs of bindinds
  • Loading branch information
bact authored Nov 9, 2024
2 parents 482f33f + 920626f commit cdf3a4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 41 deletions.
1 change: 0 additions & 1 deletion .cargo/config

This file was deleted.

46 changes: 6 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pip install nlpo3
- [Features](#features)
- [Dictionary file](#dictionary-file)
- [Usage](#usage)
- [Python binding](#python-binding)
- [Node.js binding](#nodejs-binding)
- [Python binding](#python-binding)
- [Rust library](#rust-library)
- [Command-line interface](#command-line-interface)
- [Build](#build)
Expand Down Expand Up @@ -68,21 +68,11 @@ pip install nlpo3

### Node.js binding

#### Source code

See [nlpo3-nodejs](./nlpo3-nodejs/) directory.
See [nlpo3-nodejs](./nlpo3-nodejs/).

### Python binding

[![PyPI](https://img.shields.io/pypi/v/nlpo3.svg "PyPI")](https://pypi.python.org/pypi/nlpo3)

#### Install

```shell
pip install nlpo3
```

#### Example
Example:

```python
from nlpo3 import load_dict, segment
Expand All @@ -91,14 +81,10 @@ load_dict("path/to/dict.file", "dict_name")
segment("สวัสดีครับ", "dict_name")
```

#### Source code

See [nlpo3-python](./nlpo3-python/) directory.
See more at [nlpo3-python](./nlpo3-python/).

### Rust library

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

#### Install

```shell
Expand Down Expand Up @@ -145,35 +131,15 @@ Remove words from an existing tokenizer:
tokenizer.remove_word(&["กระเพรา", "ชานชลา"]);
```

#### Source code

See the [root](/) directory.

### Command-line interface

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

#### Install

```shell
cargo install nlpo3-cli
```

#### Usage

```shell
nlpo3 help
```

#### Example
Example:

```bash
echo "ฉันกินข้าว" | nlpo3 segment
```

#### Source code

See [nlpo3-cli](./nlpo3-cli/) directory.
See more at [nlpo3-cli](./nlpo3-cli/).

## Build

Expand Down

0 comments on commit cdf3a4a

Please sign in to comment.