Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rashikakarki/context-free-grammar

Generating unique sentences using Context Free Grammar.
https://github.com/rashikakarki/context-free-grammar

context-free-grammar generator nlp sentence-generator

Last synced: 2 days ago
JSON representation

Generating unique sentences using Context Free Grammar.

Awesome Lists containing this project

README

        

# SentenceGenerator

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

### Example

```python
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)
```