/Context-Free-Grammar

Generating unique sentences using Context Free Grammar.

Primary LanguagePython

SentenceGenerator

SentenceGenerator is a Python class that generates unique sentences based on a context-free grammar.

Example

from main import SentenceGenerator

# Create an instance of SentenceGenerator
sentence_generator = SentenceGenerator(grammar)

# Generate 100,000 unique sentences
unique_sentences = sentence_generator.generate_unique_sentences(100000)