Skip to content

Commit

Permalink
Merge pull request #36 from RasaHQ/small-thai-docs-update
Browse files Browse the repository at this point in the history
thai-docs
  • Loading branch information
koaning authored Sep 9, 2020
2 parents 888562a + 5f19452 commit 3b1ca51
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
13 changes: 11 additions & 2 deletions docs/docs/tokenizer/thai_tokenizer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
The `ThaiTokenizer` is a Rasa compatible tokenizer for Thai, using [`PyThaiNLP`](https://github.com/PyThaiNLP/pythainlp) under the hood.

In order to use the `ThaiTokenizer` the language **must** be set to `th` - no other languages are supported by this tokenizer.
In order to use the `ThaiTokenizer` the language **must** be set to `th` - no
other languages are supported by this tokenizer.

## Configurable Variables

None

## Base Usage

The `ThaiTokenizer` can be used in a Rasa configuration like below:

Expand All @@ -15,4 +22,6 @@ pipeline:
max_ngram: 4
- name: DIETClassifier
epochs: 100
```
```
If there are any issues with this tokenizer, please [let us know](https://github.com/RasaHQ/rasa-nlu-examples/issues).
7 changes: 7 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ The following components are implemented.
This component will print what each featurizer adds to the NLU message. Very useful for debugging.
You can find a tutorial on it [here](https://blog.rasa.com/custom-printer-component/).

### Tokenizers

#### ThaiTokenizer [docs](docs/tokenizer/thai_tokenizer/)

We support a Thai tokenizier based on PyThaiNLP [link](https://github.com/PyThaiNLP/pythainlp).


### Dense Featurizers

#### FastTextFeaturizer
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name="rasa_nlu_examples",
version="0.1.1",
version="0.1.2",
packages=find_packages(exclude=["notebooks"]),
install_requires=base_packages,
extras_require={"dev": dev_packages},
Expand Down

0 comments on commit 3b1ca51

Please sign in to comment.