项目作者: PyThaiNLP

项目描述 :
Thai Analysis Rule
高级语言: Python
项目地址: git://github.com/PyThaiNLP/thai-analysis-rule.git
创建时间: 2020-05-16T14:11:03Z
项目社区:https://github.com/PyThaiNLP/thai-analysis-rule

开源协议:Apache License 2.0

下载


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

  1. pip install https://github.com/PyThaiNLP/thai-analysis-rule/archive/master.zip

Docs

Generate Sentences

  1. from thaianalysisrule import generate_sent
  2. print(generate_sent(n=1)) # Generate 1 Sentence

Parser

From list word

  1. from thaianalysisrule import parser
  2. print(parser(["ผม","เดิน"]))

From string

  1. from thaianalysisrule import word_seg_parser
  2. print(word_seg_parser("ผมเดิน"))

License

  1. Copyright 2020 Wannaphong Phatthiyaphaibun
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.