This is the source code for my part II project on language modelling.
In order to run the code for this project, you will need to install Bazel 0.3.2, which can be found here.
In your desired directory:
git clone -b v0.11.0_fix https://github.com/DevanKuleindiren/tensorflow.git
cd tensorflow
./configure
and follow the instructions.cd tensorflow
git clone https://github.com/DevanKuleindiren/language-modelling.git
mv language-modelling Source
cd Source
The code in this project is designed to be run using Bazel. The project is split up into a
hierarchy of targets. From within the Source directory, building a target named a/b:c
can be done as follows
bazel build a/b:c
Then, to running the compiled target can be done as follows:
../../bazel-bin/tensorflow/Source/a/b/c -- ARGS
where ARGS
is replaced with the relevant arguments for the program. The main targets in this project are:
:main
- the main command line interface to running inference on trained language models.lm/ngram:train
- for training n-gram language models.lm/rnn:rnn
- for training RNN-based language models.benchmark:main
- for benchmarking the language models.