-
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.
Prepared a package for PyPI + fixed evaluate script to work with a ne…
…w package + removed junk
- Loading branch information
1 parent
e13b473
commit 8114f23
Showing
13 changed files
with
177 additions
and
127 deletions.
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 |
---|---|---|
|
@@ -31,4 +31,5 @@ problem_squad.txt | |
random_indexing.py | ||
run_bpe.sh | ||
run_exp.sh | ||
templates.log | ||
templates.log | ||
src/quinductor.egg-info |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
python3 evaluate.py -l en -f data/tydiqa-v1.0-dev.jsonl -t templates/en/16132054753040054/ -r templates/en/ -pg pos_ngrams/en/ -ft tydiqa -cf | ||
python3 evaluate.py -l ar -f data/tydiqa-v1.0-dev.jsonl -t templates/ar/1614104416496133/ -r templates/ar/ -pg pos_ngrams/ar/ -ft tydiqa -cf | ||
python3 evaluate.py -l id -f data/tydiqa-v1.0-dev.jsonl -t templates/id/16140609246000547/ -r templates/id/ -pg pos_ngrams/id/ -ft tydiqa -cf | ||
python3 evaluate.py -l ja -f data/tydiqa-v1.0-dev.jsonl -t templates/ja/16140572221308537/ -r templates/ja/ -pg pos_ngrams/ja/ -ft tydiqa -rp -rtl | ||
python3 evaluate.py -l ko -f data/tydiqa-v1.0-dev.jsonl -t templates/ko/16140582210609627/ -r templates/ko/ -pg pos_ngrams/ko/ -ft tydiqa -rtl | ||
python3 evaluate.py -l te -f data/tydiqa-v1.0-dev.jsonl -t templates/te/16140691545631247/ -r templates/te/ -pg pos_ngrams/te/ -ft tydiqa -rtl | ||
python3 evaluate.py -l fi -f data/tydiqa-v1.0-dev.jsonl -t templates/fi/16132078825085254/ -r templates/fi/ -pg pos_ngrams/fi/ -ft tydiqa -cf | ||
python3 evaluate.py -l ru -f data/tydiqa-v1.0-dev.jsonl -t templates/ru/1613204358381249/ -r templates/ru/ -pg pos_ngrams/ru/ -ft tydiqa -cf -rd | ||
python3 evaluate.py -l en -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -cf | ||
python3 evaluate.py -l ar -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -cf | ||
python3 evaluate.py -l id -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -cf | ||
python3 evaluate.py -l ja -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -rp -rtl | ||
python3 evaluate.py -l ko -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -rtl | ||
python3 evaluate.py -l te -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -rtl | ||
python3 evaluate.py -l fi -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -cf | ||
python3 evaluate.py -l ru -f data/tydiqa-v1.0-dev.jsonl -ft tydiqa -cf -rd |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# English | ||
python3 -m quinductor.make_templates -l en -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/en/idf_en.csv -cf | ||
python3 -m quinductor.make_templates -l en -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -cf | ||
|
||
# Finnish | ||
python3 -m quinductor.make_templates -l fi -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/fi/idf_fi.csv -cf | ||
python3 -m quinductor.make_templates -l fi -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -cf | ||
|
||
# Russian | ||
python3 -m quinductor.make_templates -l ru -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/ru/idf_ru.csv -cf -rd | ||
python3 -m quinductor.make_templates -l ru -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -cf -rd | ||
|
||
# Indonesian | ||
python3 -m quinductor.make_templates -l id -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/id/idf_id.csv -cf | ||
python3 -m quinductor.make_templates -l id -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -cf | ||
|
||
# Japanese | ||
python3 -m quinductor.make_templates -l ja -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/ja/idf_ja.csv -rp -rtl | ||
python3 -m quinductor.make_templates -l ja -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -rp -rtl | ||
|
||
# Telugu | ||
python3 -m quinductor.make_templates -l te -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/te/idf_te.csv -rp -rtl | ||
python3 -m quinductor.make_templates -l te -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -rp -rtl | ||
|
||
# Arabic | ||
python3 -m quinductor.make_templates -l ar -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/ar/idf_ar.csv -rp | ||
python3 -m quinductor.make_templates -l ar -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -rp | ||
|
||
# Korean | ||
python3 -m quinductor.make_templates -l ko -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -idf templates/ko/idf_ko.csv -rtl | ||
python3 -m quinductor.make_templates -l ko -d data/tydiqa-v1.0-train.jsonl -ft tydiqa -rtl |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
import re | ||
from collections import defaultdict | ||
|
||
import numpy as np | ||
|
||
from .rules import * | ||
|
||
|
||
|
Oops, something went wrong.