Authors: Alex Gerstein, Scott Gladstone, Vikram Narayan
This problem consists of translating input text into text from a given author or corpus. Our motivation for the project was to come up with a tool that enables anyone to enter input and learn how Hemingway or another famous author would say that input.
- NLTK
- NLTK-Data - wordnet
- NLTK Punkt
- pattern.en (pip install pattern)
- Open Python interpreter
import nltk nltk.download() Then an installation window appears. Go to the 'Models' tab and select 'punkt' from under the 'Identifier' column. Then click Download and it will install the necessary files.
App: https://damp-peak-7452.herokuapp.com/
Source: https://github.com/alexgerstein/hemingway-web
python main.py -a [author] -i [input] -o [output] [no lesk mode]
[author]: hemingway, shakespeare, dickens, rappers
[input]: .txt file name
[output]: file name
[no lesk mode]: optional: '--fast' to run without word-sense disambiguation