├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── data ├── listops │ └── external │ │ └── urls.txt └── nli │ └── external │ └── urls.txt ├── listops ├── __init__.py ├── data_preprocessing │ ├── ListOpsBucketSampler.py │ ├── ListOpsDataset.py │ ├── ListOpsDatasetTrees.py │ ├── __init__.py │ ├── build_vocab.py │ ├── load_listops_data.py │ ├── make_data.py │ └── split.py ├── models │ ├── IdealTreeModel.py │ ├── PpoModel.py │ ├── ReinforceModel.py │ └── __init__.py ├── ppo │ ├── __init__.py │ ├── test.py │ └── train_ppo_model.py ├── reinforce │ ├── __init__.py │ └── train_reinforce_model.py └── tree_lstm │ ├── __init__.py │ └── train_tree_lstm_model.py ├── modules ├── BinaryTreeBasedModule.py ├── BinaryTreeLstmCell.py ├── BinaryTreeLstmRnn.py ├── BottomUpTreeLstmParser.py ├── LstmRnn.py └── __init__.py ├── nli ├── __init__.py ├── data_preprocessing │ ├── NliDataset.py │ ├── __init__.py │ └── preprocess.py ├── models │ ├── PpoModel.py │ ├── ReinforceModel.py │ └── __init__.py └── ppo │ ├── __init__.py │ └── train_ppo_model.py ├── requirements.txt ├── sst ├── __init__.py ├── models │ ├── PpoModel.py │ ├── ReinforceModel.py │ └── __init__.py └── ppo │ ├── __init__.py │ └── train_ppo_model.py └── utils.py /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/README.md -------------------------------------------------------------------------------- /data/listops/external/urls.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/data/listops/external/urls.txt -------------------------------------------------------------------------------- /data/nli/external/urls.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/data/nli/external/urls.txt -------------------------------------------------------------------------------- /listops/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/__init__.py -------------------------------------------------------------------------------- /listops/data_preprocessing/ListOpsBucketSampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/ListOpsBucketSampler.py -------------------------------------------------------------------------------- /listops/data_preprocessing/ListOpsDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/ListOpsDataset.py -------------------------------------------------------------------------------- /listops/data_preprocessing/ListOpsDatasetTrees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/ListOpsDatasetTrees.py -------------------------------------------------------------------------------- /listops/data_preprocessing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/__init__.py -------------------------------------------------------------------------------- /listops/data_preprocessing/build_vocab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/build_vocab.py -------------------------------------------------------------------------------- /listops/data_preprocessing/load_listops_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/load_listops_data.py -------------------------------------------------------------------------------- /listops/data_preprocessing/make_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/make_data.py -------------------------------------------------------------------------------- /listops/data_preprocessing/split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/data_preprocessing/split.py -------------------------------------------------------------------------------- /listops/models/IdealTreeModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/models/IdealTreeModel.py -------------------------------------------------------------------------------- /listops/models/PpoModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/models/PpoModel.py -------------------------------------------------------------------------------- /listops/models/ReinforceModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/models/ReinforceModel.py -------------------------------------------------------------------------------- /listops/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/models/__init__.py -------------------------------------------------------------------------------- /listops/ppo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/ppo/__init__.py -------------------------------------------------------------------------------- /listops/ppo/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/ppo/test.py -------------------------------------------------------------------------------- /listops/ppo/train_ppo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/ppo/train_ppo_model.py -------------------------------------------------------------------------------- /listops/reinforce/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/reinforce/__init__.py -------------------------------------------------------------------------------- /listops/reinforce/train_reinforce_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/reinforce/train_reinforce_model.py -------------------------------------------------------------------------------- /listops/tree_lstm/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/tree_lstm/__init__.py -------------------------------------------------------------------------------- /listops/tree_lstm/train_tree_lstm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/listops/tree_lstm/train_tree_lstm_model.py -------------------------------------------------------------------------------- /modules/BinaryTreeBasedModule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/BinaryTreeBasedModule.py -------------------------------------------------------------------------------- /modules/BinaryTreeLstmCell.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/BinaryTreeLstmCell.py -------------------------------------------------------------------------------- /modules/BinaryTreeLstmRnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/BinaryTreeLstmRnn.py -------------------------------------------------------------------------------- /modules/BottomUpTreeLstmParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/BottomUpTreeLstmParser.py -------------------------------------------------------------------------------- /modules/LstmRnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/LstmRnn.py -------------------------------------------------------------------------------- /modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/modules/__init__.py -------------------------------------------------------------------------------- /nli/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/__init__.py -------------------------------------------------------------------------------- /nli/data_preprocessing/NliDataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/data_preprocessing/NliDataset.py -------------------------------------------------------------------------------- /nli/data_preprocessing/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/data_preprocessing/__init__.py -------------------------------------------------------------------------------- /nli/data_preprocessing/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/data_preprocessing/preprocess.py -------------------------------------------------------------------------------- /nli/models/PpoModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/models/PpoModel.py -------------------------------------------------------------------------------- /nli/models/ReinforceModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/models/ReinforceModel.py -------------------------------------------------------------------------------- /nli/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/models/__init__.py -------------------------------------------------------------------------------- /nli/ppo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/ppo/__init__.py -------------------------------------------------------------------------------- /nli/ppo/train_ppo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/nli/ppo/train_ppo_model.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/requirements.txt -------------------------------------------------------------------------------- /sst/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/__init__.py -------------------------------------------------------------------------------- /sst/models/PpoModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/models/PpoModel.py -------------------------------------------------------------------------------- /sst/models/ReinforceModel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/models/ReinforceModel.py -------------------------------------------------------------------------------- /sst/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/models/__init__.py -------------------------------------------------------------------------------- /sst/ppo/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/ppo/__init__.py -------------------------------------------------------------------------------- /sst/ppo/train_ppo_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/sst/ppo/train_ppo_model.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/facebookresearch/latent-treelstm/HEAD/utils.py --------------------------------------------------------------------------------