An article spinner
Taking an existing Article and replacing words in it with similar words and coming up with a new Article.
In this repository, this process has been demonstrated
- Use the Trigrams approach. Consider triplets of words. For each and every word except the extreme words, form a triplet of (previous word, current word, next word)
- We will now create a dictionary which will be of the form
trigram: ('prev word', 'next word'): ['current word']
- Now we have to find the trigram probability, i.e., the probability of the current word actually appearing in between the two words.
- Now set a variable threshold of a 20% chance of a word being replaced.
- Spin the article
- Clone the repo
- Run the main.py by using the command
python main.py
Go on