Giter VIP home page Giter VIP logo

Comments (1)

wojtek11530 avatar wojtek11530 commented on August 10, 2024

Hi, I have also encountered it. I have tried to omit the problem by dropping the rows which are not correct:

df = pd.read_csv(dataset_path / '2_splits'/ f'ConvAbuseEMNLP{split}.csv')
    
    df = df.astype({'example_id': 'int64'})  
    annot_columns = [f'Annotator{i+1}_is_abuse.{value}' for value in abuse_values for i in range(8)]
    index_to_drop = []

    for i, row in df.iterrows():
        for c in annot_columns:
            if row[c] not in ['0', '1', np.nan]:
                index_to_drop.append(i)
                break

    df = df.drop(index_to_drop).reset_index(drop=False)
    df = df.astype({c: 'float64' for c in annot_columns}) 

Unfortunately, it drops a large qunity of data (~10k) so it is half of all annotations. Therefore the test split has no examples labeled as -3, -2, 0 is_abusive. I suggest fixing the entire dataset & reuploading.

from convabuse.

Related Issues (4)

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.