Giter Club home page Giter Club logo

Comments (3)

jiesutd avatar jiesutd commented on June 8, 2024 2

Awesome! Thanks for sharing this knowledge.

from ncrfpp.

jiesutd avatar jiesutd commented on June 8, 2024

You can refer to this: huggingface/transformers#4668

from ncrfpp.

jd-coderepos avatar jd-coderepos commented on June 8, 2024

Thank you for the reply. I managed to work out the problem. Sharing below my experience.

I tried running it on my local machine with 40GB ram and the issue persisted. It asked for a significantly large RAM which seemed unreasonable.

oom

I then ran the code on the sample data and looked in the DATA SUMMARY STAT section where it showed the Label alphabet size: 18. But as in my screenshot below, from the run on my data, my Label alphabet size is almost the same as the Word alphabet size.

error-screen

The problem was in my test data. I had not attached default O labels to the words. So perhaps the program was considering the words as the labels themselves. As an example, the former test file contained data as below:

Quantitative
Regular
Expressions
for
Arrhythmia
Detection
Algorithms

Logics
and
Games
for
True
Concurrency

And I fixed this with:

Quantitative O
Regular O
Expressions O
for O
Arrhythmia O
Detection O
Algorithms O

Logics O
and O
Games O
for O
True O
Concurrency O

This then showed an accurate Label alphabet size: 30 and no memory issues. :)

from ncrfpp.

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.