Giter Site home page Giter Site logo

Comments (11)

GanjinZero avatar GanjinZero commented on May 29, 2024

With only sampled data, there is too little signal for the model to learn. You may try the GENIA dataset which has public data to reproduce our result.

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Ok thank you!

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Hello,
I am trying now to work on my own dataset, however I dindn't know how to set the padding_idx and the dim.
this two parameters : word_embedding_config['padding_idx'] and word_embedding_config['dim']

Thank you!

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 29, 2024

use word_embed.py on your dataset, and you will obtain your word2id.json, you can check padding_idx here. And word embedding dim is depend on which word embedding you used.

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Thank you very much for your assistance.
Actually, I tried to start the training on my own dataset, but I am getting this error :
error_model

Strangely, this error only occurs when I attempt to train the model using the entire dataset. When I experimented with a subset of the same dataset, the training process proceeded without any errors. However, I noticed that despite successful training, the resulting F1 score was consistently 0.

I would be grateful if you could help me understand the cause of this error and why the F1 score remains at 0 when training with the subset. Any insights or suggestions you can provide to troubleshoot this issue would be highly appreciated.

Thank you once again for your invaluable support.

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Is there a limit for the dataset size?

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 29, 2024

There is not a limit for a dataset, your error may be due to a empty sentence or a empty word in any sentence.
For F1 score, I have no idea. I remember my model will output predicitions every epoch, you should check it first.

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Thank you for your response!
I will check if there are empty sentences!
Concerning the predictions, this is what I found :
For the first epochs I have : 2,11 UNIT|13,14 UNIT|0,8
And for the last epochs, I have empty files.

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 29, 2024

You should use this framework with more samples to get normal results.

from triaffine-nested-ner.

ilaouirine avatar ilaouirine commented on May 29, 2024

Thank you very much for your assistance!
The error is fixed, but I am having a CUDA Out Of Memory issue even with a batch size of 1.
Is there any solution for this without changing the GPU that I'm using?
Thank you!

from triaffine-nested-ner.

GanjinZero avatar GanjinZero commented on May 29, 2024

What is your GPU memory?
You should use small LM (i.e. roberta-base) and small triaffine-dimension to 128/96/64

from triaffine-nested-ner.

Related Issues (7)

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.