Coder Social home page Coder Social logo

diversity-eval's People

Contributors

guytevet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

diversity-eval's Issues

Manually download data link

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

UTF-8 encoding issue

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.