GithubHelp home page GithubHelp logo

Load Data about matchzoo-py HOT 2 CLOSED

ntmc-community avatar ntmc-community commented on May 30, 2024
Load Data

from matchzoo-py.

Comments (2)

ChrisRBXiong avatar ChrisRBXiong commented on May 30, 2024

You need to format your data into the desired format first, and then write a function to load it as matchzoo.DataPack.

The data should be formated into an csv file, whose columns are row_index, id_left, text_left, id_right, text_right and label. Take QA task as an example. The question is "how a rocket engine works" and the true answer is "A rocket engine, or simply ""rocket"", is a jet engine that uses only stored propellant mass for forming its high speed propulsive jet ." Then the instance can be formated into

0,Q1,how a rocket engine works,D1,"A rocket engine, or simply ""rocket"", is a jet engine that uses only stored propellant mass for forming its high speed propulsive jet .",1.0

You can check "matchzoo/datasets/toy", it is a toy dataset example that illustrated the data format and how to write the load_data function.

from matchzoo-py.

ZahraGithub avatar ZahraGithub commented on May 30, 2024

Thanks for your clear reply.

from matchzoo-py.

Related Issues (20)

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.