Comments (7)
Thanks for the question! There is an in the squad_metrics.py
script of HuggingFace Transformers that does not work well for Chinese. Specifically, as Chinese doesn't use spaces, we don't need to execute the get_final_text
function in this line. If you set final_text = tok_text
instead only for Chinese, then you should get the same scores.
from xtreme.
@sebastianruder Thank you very much!
from xtreme.
@hit-computer hello, can you share which lines in evaluate_mlqa.py
did you change to obtain the normal Chinese results? Just encountered the same problem on zh ):
from xtreme.
@sebastianruder @hit-computer After I set final_text = tok_text
in squad_metrics.py
, and ran predict_qa.py
and eval_qa.py
again, I still got the same results for Chinese on MLQA. Is there anything else I am missing? If I look at the predictions, most of them are very long, almost directly copying-pasting the context.
{"exact_match": 4.944520147946272, "f1": 18.297195642566766}
from xtreme.
@sebastianruder @hit-computer After I set
final_text = tok_text
insquad_metrics.py
, and ranpredict_qa.py
andeval_qa.py
again, I still got the same results for Chinese on MLQA. Is there anything else I am missing? If I look at the predictions, most of them are very long, almost directly copying-pasting the context.
{"exact_match": 4.944520147946272, "f1": 18.297195642566766}
+1
from xtreme.
@lixin4ever It works for me now. To evaluate ZH, we have to first delete this line, and then add final_text = tok_text
at line 514. After modifying squad_metrics.py
, run predict_qa.py
to get the updated predicted file, and then we can evaluate it again.
from xtreme.
@ruixiangcui It also works for me. Thanks.
from xtreme.
Related Issues (20)
- explainaboard doesn't work
- There is no AmazonPhotos.zip in the link to download the dataset. How to download the dataset?
- WikiExtractor git cloning error HOT 2
- New tasks in xtreme-r HOT 5
- XLMR results on POS tagging (ja, zh and yo) HOT 2
- Unclear which transformers version should be used when testing Tatoeba HOT 6
- 2513 Segmentation fault: 11 when running Tatoeba HOT 1
- Cannot achieve the XNLI performance in the paper
- TypeError: compute_predictions_logits() takes 12 positional arguments but 13 were given
- XCopa scripts?
- Metrics for sequence tagging tasks dependant on the max_seq_length parameter HOT 1
- Old Russian in Russian UDpos dataset
- Training data for XCOPA
- Evaluation results of PANX task HOT 3
- How to get LAReQA results across different question languages HOT 5
- How is the test data for TyDiQA generated? HOT 3
- Adding a new language
- Tatoeba baseline from XTREME-R
- Missing de translation data in MLQA HOT 1
- [bugs] All results 0 in test with the NER(PANX) task HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xtreme.