Word Level Text Generation using Neural and Statistical Language Models
The goal of this project is to develop a word-level text generator, built using on top of a neural language modeler or a statistical language modeler.
The user can either select one of the saved models, or train one on his/her own on the Brown Corpus, so as to use xwordgen
to generate words that follow a given input sequence of words.
This section describes the preqrequisites, and contains instructions, to get the project up and running.
This project can easily be set up with all the prerequisite packages by following these instructions:
conda_install.sh
file, with the command: $ bash conda_install.sh
Create a conda environment from the included environment.yml
file using the following command:
$ conda env create -f environment.yml
Activate the environment
$ conda activate xwordgen
The user can get a description of the options by using the command: $ xwordgen --help
.
Furthermore, using either the saved models or the trained ones, the user will be prompted to enter an input sequence, for which the word that follows will be generated.
There are no specific guidelines for contributing, apart from a few general guidelines we tried to follow, such as:
If you see something that could be improved, send a pull request!
I am always happy to look at improvements, to ensure that xwordgen
, as a project, is the best version of itself.
If you think something should be done differently (or is just-plain-broken), please create an issue.
See the LICENSE file for more details.