Git Product home page Git Product logo

Comments (2)

JunjieHu avatar JunjieHu commented on July 30, 2024

@blazejdolicki The *.idx files actually record the original sentence index in the download/udpos/dev-xx.tsv files. The reason to create this index file is that most pre-trained models have their own tokenizers which tokenize an original sentence to a longer one. The length of the tokenized sentences might exceed a pre-defined value such as 128, 256, or 512.

Current models can only make tag predictions for sequences with a maximum length such as 512. In our paper, we used 128 as the maximum length. So to make tag predictions for a longer tokenized sentence, we break it into two for separate predictions, and record their original index in order to merge the two predicted tag sequences as the final output.

In your above example, you can check Line 13067 of the original file in download/udpos/dev-nl.tsv to see that the two tokenized sentences with the same index actually come from one sentence. During evaluation, we actually check the tag predictions line by line with the ground-truth labels in the original files download/udpos/dev-xx.tsv.

Let me know if the above explanation is clean to you.

from xtreme.

blazejdolicki avatar blazejdolicki commented on July 30, 2024

Thank you for clarification! So I used the file download/udpos/udpos_processed_maxlen128/nl/dev.xlm-roberta-large (where the sentences exceeding the limit are split) instead of download/udpos/dev-nl.tsv and that caused to the problem. After changing the file, the alignment is correct. I'm closing the issue.

from xtreme.

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.