pcgreat / seqmatchseq Goto Github PK
View Code? Open in Web Editor NEWCompare-Aggregate method for WikiQA (via PyTorch)
Compare-Aggregate method for WikiQA (via PyTorch)
when i run main.py in directory "main", data files are loaded successfully, but it arise the error: " assert (map_idx != 0) " AssertionError. I don't know why it happened?
Hello!
I tried to run the wikiqa here and I used the default settings as like it is present in the main.py
However, my MAP and MRR is really low compared to what appears in the README. Could you please share how can I get the 0.727 (MAP)?
This is my output.
Building vocab dict ...
41985
Building wikiqa all data ...
Loading glove ...
Number of words not appear in glove: 5692
Vocal size: 41985
loading data ..
Loading data train...
Size of training data: 873
Loading data dev...
Size of dev data: 126
Loading embedding ...
100%|██████████| 88/88 [01:12<00:00, 1.21it/s]
Dev: MAP: 0.5656880523944017, MRR: 0.5696300612967281
100%|██████████| 88/88 [01:09<00:00, 1.27it/s]
Dev: MAP: 0.5698974342823551, MRR: 0.5726599899218948
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.5589818727715553, MRR: 0.5617063492063491
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.5333682080705892, MRR: 0.5356217525860384
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.556504808389729, MRR: 0.5590680043060994
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.596566708570677, MRR: 0.6045730283825524
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.5831342378961426, MRR: 0.5913074359502931
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
0%| | 0/88 [00:00<?, ?it/s]Dev: MAP: 0.5700577508910841, MRR: 0.5774248458772269
100%|██████████| 88/88 [01:08<00:00, 1.28it/s]
Dev: MAP: 0.5925723121547828, MRR: 0.6021286033190795
100%|██████████| 88/88 [01:09<00:00, 1.27it/s]
Dev: MAP: 0.5701876569932125, MRR: 0.5777376944043611
Hi,
I am not sure if I am running the codes correctly, but I am just getting atmost 62% MAP on dev set after 10 epochs.
Can you suggest me the required changes to reach ~72% MAP performance...
Thanks...
Sorry for creating an issue in this repo. but I had to since your qa-transfer repo is a branch and doesn't have options for issues.
I am able to run
./download.sh
and
./preprocess.sh
However on running
./pretrain.sh span
I get the following errors:
./pretrain.sh span
Traceback (most recent call last):
File "/home/aneeshj/miniconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/aneeshj/miniconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/aneeshj/Projects/qa-transfer/basic/cli.py", line 141, in <module>
tf.app.run()
File "/home/aneeshj/miniconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/home/aneeshj/Projects/qa-transfer/basic/cli.py", line 133, in main
config_dic = flags.FLAGS.flag_values_dict()
File "/home/aneeshj/miniconda3/lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 55, in __getattr__
raise AttributeError(name)
AttributeError: flag_values_dict
Traceback (most recent call last):
File "/home/aneeshj/miniconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/aneeshj/miniconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/aneeshj/Projects/qa-transfer/basic/cli.py", line 141, in <module>
tf.app.run()
File "/home/aneeshj/miniconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/home/aneeshj/Projects/qa-transfer/basic/cli.py", line 133, in main
config_dic = flags.FLAGS.flag_values_dict()
File "/home/aneeshj/miniconda3/lib/python3.6/site-packages/tensorflow/python/platform/flags.py", line 55, in __getattr__
raise AttributeError(name)
AttributeError: flag_values_dict
Could you please check it for errors.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.