Skip to content

Latest commit

 

History

History
7 lines (7 loc) · 458 Bytes

README.md

File metadata and controls

7 lines (7 loc) · 458 Bytes

RNN-word-order

  • generate training/testing sentences with generate-sentences/generate_from_pcfg.py
  • create vocab.txt
  • train LSTM model with language_models/main.py
  • create testing sentences of alternative constructions with generate-sentences/create_alternation.py
  • compute word surprisals with language_models/evaluate_target_word_test.py
  • compute total sentence surprisal or average word surprisal with language_models/compute_sentence_surprisal.py