Git Product home page Git Product logo

Comments (5)

mnschmit avatar mnschmit commented on September 28, 2024

This seems to be the same (or similar) kind of error I ran into (#43). We didn't really manage to pinpoint the exact source of the problem at that time.
One workaround that worked for me was replacing -np.inf by a large negative number. But if you can help trace down why this sometimes happens and sometimes doesn't, it would be great, too!

from skweak.

plison avatar plison commented on September 28, 2024

Could you send a minimal data example, so I can have a look at it?
Typically, when this happens, it means that the HMM has reached a position where no state is possible (all values have a probability of zero), given the current transition and emission probabilities.

from skweak.

kavyaReddy1729 avatar kavyaReddy1729 commented on September 28, 2024

Could you send a minimal data example, so I can have a look at it? Typically, when this happens, it means that the HMM has reached a position where no state is possible (all values have a probability of zero), given the current transition and emission probabilities.

example:
Sentence: Eastern Equine Encephalitis Virus (EEEV) is a dangerous disease

we have predicted labels before from 2 models.
model1: ["negative", "not safe"]
model2: ["positive", "not safe"]

how to generate a labelling function for this kind of multi labelling.

from skweak.

ayoub-chammam avatar ayoub-chammam commented on September 28, 2024

same error occured to me while working on an NER Task with the train set from the CoNLL dataset.

from skweak.

plison avatar plison commented on September 28, 2024

Ok, I found what was going on (and sorry for the answering delay): even though the aggregation model allows for multi-label predictions, skweak still assumes that each labelling source only provides a single label for a given text. In other words, the aggregator may predict multiple labels, but each labelling source must stick to one single label at a time.

Fortunately, there is an easy way to change your code: just create a separate labelling source for each possible label outputted by a given model, like model1_negative, model1_positive, model1_not_safe, etc.

from skweak.

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.