-
Install requirements (see
requirements.txt
) and getG2P-my_LSTM-act1_save_new_general.py
to run locally using python3 -
Generate train,dev,test data and place it in a subfolder in
data
(say you call this MYDATA). Two sample folders are given indata
.- NB All data must be in tab seperated format, see examples in
data
. If necessary, runpython3 renderTest.py < test.1k.0
to convert your test data in the same format.
- NB All data must be in tab seperated format, see examples in
-
In
G2P-my_LSTM-act1_save_new_general.py
andneuralnets/BiLSTM_proper.py
modify paths indicated by "MODIFY" to your local settings. -
Run
G2P-my_LSTM-act1_save_new_general.py
with some arguments. Arguments include hyperparameters, but also- the path to the train,dev,test split you want to train (indicated by MYDATA)
- the embeddings you want to use for training (make a new copy of embeddings for each run you make in case your train,dev,test splits differ).
Sample runs are given in
allvsall_odd
.
-
Outputs are stored in the path indicated in
neuralnets/BiLSTM_proper.py
under "MODIFY". -
Run
Eval/eval2.py
using the respective output files as arguments.