https://github.com/pythainlp/thai-analysis-rule
Thai Analysis Rule
https://github.com/pythainlp/thai-analysis-rule
thai-language thai-nlp thai-nlp-library
Last synced: 7 months ago
JSON representation
Thai Analysis Rule
- Host: GitHub
- URL: https://github.com/pythainlp/thai-analysis-rule
- Owner: PyThaiNLP
- License: apache-2.0
- Created: 2020-05-16T14:11:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T13:35:49.000Z (over 5 years ago)
- Last Synced: 2025-01-16T00:13:03.538Z (9 months ago)
- Topics: thai-language, thai-nlp, thai-nlp-library
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thai Analysis Rule
This is an implementation of the paper:
Sornlertlamvanich, V. and Phantachat, W., 1995. "Thai Analysis Rules, Technical Report, Machine Translation System Laboratory", Center of the International Cooperation for Computerization, Japan.
## Install
```
pip install https://github.com/PyThaiNLP/thai-analysis-rule/archive/master.zip
```## Docs
### Generate Sentences
```python
from thaianalysisrule import generate_sent
print(generate_sent(n=1)) # Generate 1 Sentence
```### Parser
#### From list word
```python
from thaianalysisrule import parser
print(parser(["ผม","เดิน"]))
```#### From string
```python
from thaianalysisrule import word_seg_parser
print(word_seg_parser("ผมเดิน"))
```## License
```
Copyright 2020 Wannaphong PhatthiyaphaibunLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```