0

Let's say I'm adding specific food product separated by commas.

Eg : The ingredients in tomato soup is tomatoes, salt, pepper. You need to heat the tomatoes till it smells like burnt apples.

Now by previous training it can detect 4 ingredients :

  1. tomato
  2. salt
  3. pepper
  4. apple.

Apple is the wrong span detected here.

But burnt apples is not an ingredient in the dish, it is just a random reference. SO how can I stop or reduce weight-age based on phrases or way the sentence is framed?

Also, I'm using spans (spancat). I've not used spangroup and acutally I don't know if spangroup will fix this issue.

Please let me know how I can add weightage for specific pattern or phrase in spans.

asked Oct 31, 2022 at 2:50
2
  • If you want your model to distinguish ingredients from non-ingredient food mentions, you'll need to provide it with more training data, particularly lots of examples of non-ingredient food mentions (like apple). However that's very difficult to learn. Commented Oct 31, 2022 at 4:09
  • Yes. exactly. Any work round? Commented Nov 2, 2022 at 14:53

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.