Update readme (#90)

* updated readme for easier replication

* updated cd changes

* link change
This commit is contained in:
rosequ
2017-12-05 21:58:55 -05:00
committed by GitHub
parent 28a198f33c
commit 0a3ce7015c
3 changed files with 22 additions and 2 deletions
+22 -1
View File
@@ -39,6 +39,26 @@ You should you see the following tree:
└── word2vec
```
Parse the TrecQA datset:
```bash
cd ../../data/TrecQA/
python parse.py
cd -
```
Parse the WikiQA datset:
```bash
cd ../../data/WikiQA/
unzip WikiQACorpus.zip
python create-train-dev-test-data.py
cd -
```
Your repository root should be in your `PYTHONPATH` environment variable:
```bash
export PYTHONPATH=$(pwd)
```
To create the dataset:
```bash
cd Castor/sm_cnn/
@@ -51,10 +71,11 @@ We use `trec_eval` for evaluation:
```bash
cd ../utils/
./get_trec_eval.sh
cd ../sm_cnn
```
### Training
Download the word2vec model from [here] (https://drive.google.com/file/d/0B2u_nClt6NbzUmhOZU55eEo4QWM/view?usp=sharing)
Download the word2vec model from [here](https://drive.google.com/file/d/0B2u_nClt6NbzUmhOZU55eEo4QWM/view?usp=sharing)
and copy it to the `data/` folder.
You can train the SM model for the 4 following configurations:
View File
-1
View File
@@ -12,7 +12,6 @@ from model import SmPlusPlus
from utils.relevancy_metrics import get_map_mrr
from trec_dataset import TrecDataset
from wiki_dataset import WikiDataset
from evaluate import evaluate
args = get_args()
config = args