guytevet / diversity-eval Goto Github PK
View Code? Open in Web Editor NEWOfficial Github repo for the paper "Evaluating the Evaluation of Diversity in Natural Language Generation"
License: MIT License
Official Github repo for the paper "Evaluating the Evaluation of Diversity in Natural Language Generation"
License: MIT License
When attempting to use run_metrics.py
, the program would crash due to non-unicode characters in multiple files in .\data\raw\
.
For example:
file: dec_test_1000_no_hds_prompt_gen.csv
we have:
sample_id: test.enc.prompt.txt::output.cmdc.uni.sample10.temp0.89::00121
resp_0: little've?" ―Mendez and Puni [src] K!
On Windows 10, I get the following error:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2015' in position 98: character maps to <undefined> csv DictWriter
Potential Solution (the one I've been using to work around this issue):
Change this line from:
output_csv_f = open(param_dict['out_path'], 'w')
to:
output_csv_f = open(param_dict['out_path'], 'w', encoding='utf-8')
Another option is to resave the data files with UTF-8 encoding by default.
By the way, thanks for the interesting paper and making this code available for the research community.
I am trying to find these two datasets if they are still available.
con_test_200_with_hds_resp_gen.csv
dec_test_200_with_hds_resp_gen.csv
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.