Git Product home page Git Product logo

Comments (3)

kpe avatar kpe commented on August 14, 2024 1

@vinnytwice - yes, sure. I guess, the 3 "\n" are how the run_squad.py script chooses to represent the data - text file with the context text and a question (separated by 3 \n), so that it is easy to parse. It would then use different segment_ids - 1 for the tokens belonging to the context text, and 0 for the question, when feeding the input into BERT.

from bert-for-tf2.

kpe avatar kpe commented on August 14, 2024

this could be quite of a task (although there is a lot of information on the net), depending on how you represent your data.
What should be easily accessible is trying to reproduce the BERT results on SQuAD. Check the BERT paper for how exactly BERT was applied on the SQuAD task.
And I'll check if I could add an example on SQuAD here.

from bert-for-tf2.

vinnytwice avatar vinnytwice commented on August 14, 2024

Hi Kpe thanks for answering..
Say I just present the dataset as sequence of paragraph separated by 3 "\n" as I saw in a repo extending BERT
https://github.com/Nagakiran1/Extending-Google-BERT-as-Question-and-Answering-model-and-Chatbot

I than should be able to do it with bert-for-tf2 right?

from bert-for-tf2.

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.