Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- 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: 2024-12-10T20:43:08.550Z (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)
```