NLU project 2 - Story Cloze Task
Source paper: Conditional Generative Adversarial Networks for Commonsense Machine Comprehension (Chinese et al, 2017)
[Put your name next to tasks you are currently working on and remove tasks once you have pushed to repo]
-
Implement attention
-
Xander Implement generator
-
Train model (DIFFICULT!)
-
Implement result writer
-
Write report
Friday 25: Implement disciminator
Friday 1: Implement attention and generator
Tuesday 5: Have model trained and results ready
Thursday 7: Finish report
Friday 8: Hand in project
datasets/
- all data sources required for training/validation/testing.outputs/
- any output for a model will be placed here, including logs, summaries, checkpoints, and Kaggle submission.csv
files.src/
- all source code.core/
- base classesdatasources/
- routines for reading and preprocessing entries for training and testingmodels/
- neural network definitionsutil/
- utility methodsmain.py
- training script
To create your own neural network, do the following:
- Make a copy of
src/models/example.py
. For the purpose of this documentation, let's call the new filenewmodel.py
and the class withinNewModel
. - Now edit
src/models/__init__.py
and insert the new model by making it look like:
from .example import ExampleNet
from .newmodel import NewModel
__all__ = ('ExampleNet', 'NewModel')
- Lastly, make a copy or edit
src/main.py
such that it imports and uses classNewModel
instead ofExampleNet
.
If your training script is called main.py
, simply cd
into the src/
directory and run
python3 main.py
[The skeleton of this project has been done by Seonwook Park and has been adapted by Nil Adell for this project]