Skip to main content

Thai Text Generator library

Project description

TTG : Thai Text Generator

Thai Text Generator

Install

pip install -e .

Example

from thaitextgenerator import *
a=Unigram()
print(a.gen_sentence(N=10))
b=Bigram()
print(b.gen_sentence(start_seq="คน", N=10))
c=Tigram()
c.gen_sentence(N=10, start_seq=("คน","ดี"))
# Thai2Fit
from thaitextgenerator.thai2fit import gen_sentence
gen_sentence()

License

   Copyright 2020 Wannaphong Phatthiyaphaibun

   Licensed 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 at

       http://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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttg-0.1.dev1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

ttg-0.1.dev1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file ttg-0.1.dev1.tar.gz.

File metadata

  • Download URL: ttg-0.1.dev1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for ttg-0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 8038a96fcd37807b82cda5ac1b1b32ed2b962029de9df79857a85006580ee431
MD5 de5e1fc45505ec67928391b7aac260c6
BLAKE2b-256 d10170202a8969ad635ba5ee39265d83fe9095691a2019381594e5c94691aba2

See more details on using hashes here.

File details

Details for the file ttg-0.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: ttg-0.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for ttg-0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 ba8e8cf9ec92f49eb490dc3e5f41ca8e8ff0259fdde17bbc09e308dc2543a2af
MD5 fddac8437a7930f01d1b593aed28974b
BLAKE2b-256 6b73c889deccd42eaaffe2d0a280f35d2ed0b24a0430e74defe66af37e4afc6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page