forked from facebookresearch/DrQA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added script and instructions for downloading corenlp. Added official…
…_eval.py to default download.sh for convenience.
- Loading branch information
Showing
5 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
*~ | ||
data/ | ||
*.tar.gz | ||
*.egg-info | ||
*.egg-info | ||
scripts/reader/official_eval.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
# Copyright 2017-present, Facebook, Inc. | ||
# All rights reserved. | ||
# | ||
# This source code is licensed under the license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
set -e | ||
|
||
# By default download to the data directory I guess | ||
read -p "Specify download path or enter to use default (data/corenlp): " path | ||
DOWNLOAD_PATH="${path:-data/corenlp}" | ||
echo "Will download to: $DOWNLOAD_PATH" | ||
|
||
# Download zip, unzip | ||
pushd "/tmp" | ||
wget -O "stanford-corenlp-full-2017-06-09.zip" "http://nlp.stanford.edu/software/stanford-corenlp-full-2017-06-09.zip" | ||
unzip "stanford-corenlp-full-2017-06-09.zip" | ||
rm "stanford-corenlp-full-2017-06-09.zip" | ||
popd | ||
|
||
# Put jars in DOWNLOAD_PATH | ||
mkdir -p "$DOWNLOAD_PATH" | ||
mv "/tmp/stanford-corenlp-full-2017-06-09/"*".jar" "$DOWNLOAD_PATH/" | ||
|
||
# Append to bashrc, instructions | ||
while read -p "Add to ~/.bashrc CLASSPATH (recommended)? [yes/no]: " choice; do | ||
case "$choice" in | ||
yes ) | ||
echo "export CLASSPATH=\$CLASSPATH:$DOWNLOAD_PATH/*" >> ~/.bashrc; | ||
break ;; | ||
no ) | ||
break ;; | ||
* ) echo "Please answer yes or no." ;; | ||
esac | ||
done | ||
|
||
printf "\n*** NOW RUN: ***\n\nexport CLASSPATH=\$CLASSPATH:$DOWNLOAD_PATH/*\n\n****************\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters