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: 17 days ago
JSON representation
Generating unique sentences using Context Free Grammar.
- Host: GitHub
- URL: https://github.com/rashikakarki/context-free-grammar
- Owner: RashikaKarki
- Created: 2023-12-16T16:08:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T08:09:58.000Z (about 1 year ago)
- Last Synced: 2025-01-14T15:10:31.951Z (about 1 month ago)
- Topics: context-free-grammar, generator, nlp, sentence-generator
- Language: Python
- Homepage:
- Size: 208 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```