tooth-python

0.1.5 · active · verified Sun Mar 29

tooth-python is a very basic Python library designed for simple text generation tasks. It provides fundamental functions to generate text. Currently at version 0.1.5, its release cadence appears to be low, with infrequent updates observed on its GitHub repository.

Warnings

Install

Imports

Quickstart

Instantiate the Tooth class and use the generate method with a starting string. You can also customize the vocabulary used for generation upon initialization.

from tooth import Tooth

tooth_generator = Tooth()
result = tooth_generator.generate("Hello")
print(f"Generated text: {result}")

# Example with custom vocabulary
custom_vocab_generator = Tooth(vocab=["a", "b", "c", "d"])
custom_result = custom_vocab_generator.generate("start")
print(f"Generated text with custom vocab: {custom_result}")

view raw JSON →