Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data processing requirements #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions scripts/data_processing/ace2005-oneie/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pip install -r requirements.txt
# >>> nltk.download("punkt")
# Or you can download manually here: https://github.com/nltk/nltk_data/blob/gh-pages/packages/tokenizers/punkt.zip
# to your ~/nltk_data/tokenizers/. And then unzip it.
# You may need Python <= 3.8 to process the scripts.
ACE_DATA_FOLDER=./../../../data/original/ace_2005_td_v7
python process_ace.py -i ${ACE_DATA_FOLDER}/data -o data/ -s splits/ACE05-E -b bert-base-cased -l english

Expand Down
1 change: 1 addition & 0 deletions scripts/data_processing/ace2005-zh/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jieba==0.42.1
3 changes: 3 additions & 0 deletions scripts/data_processing/ace2005-zh/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Install requirements
pip install -r requirements.txt

python ace2005-zh-novalue.py \
--data_dir ../../../data/original/ace_2005_td_v7 \
--ACE_SPLITS splits \
Expand Down
1 change: 1 addition & 0 deletions scripts/data_processing/duee/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jieba==0.42.1
3 changes: 3 additions & 0 deletions scripts/data_processing/duee/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Install requirements
pip install -r requirements.txt

python duee.py \
--data_dir ../../../data/original/DuEE1.0 \
--save_dir ../../../data/processed/DuEE1.0
Expand Down
1 change: 1 addition & 0 deletions scripts/data_processing/ere/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nltk==3.6.6
8 changes: 8 additions & 0 deletions scripts/data_processing/ere/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Install requirements
pip install -r requirements.txt
# First, you need to download nltk model
# >>> import nltk
# >>> nltk.download("punkt")
# Or you can download manually here: https://github.com/nltk/nltk_data/blob/gh-pages/packages/tokenizers/punkt.zip
# to your ~/nltk_data/tokenizers/. And then unzip it.

python LDC2015E29.py \
--data_dir ../../../data/original/LDC2015E29 \
--save_dir ../../../data/processed/LDC2015E29
Expand Down
1 change: 1 addition & 0 deletions scripts/data_processing/kbp/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nltk==3.6.6
8 changes: 8 additions & 0 deletions scripts/data_processing/kbp/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Install requirements
pip install -r requirements.txt
# First, you need to download nltk model
# >>> import nltk
# >>> nltk.download("punkt")
# Or you can download manually here: https://github.com/nltk/nltk_data/blob/gh-pages/packages/tokenizers/punkt.zip
# to your ~/nltk_data/tokenizers/. And then unzip it.

python kbp2014-ed.py \
--data_dir ../../../data/original/tac_kbp_eng_event_nugget_detect_coref_2014-2015 \
--save_dir ../../../data/processed/TAC-KBP2014
Expand Down