Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Predict labels given a translation

See original GitHub issue

@BrikerMan I want to say thank you for developing this library and providing incredible support along with it. Kudos to you!

I want to create a model that will predict labels given a translation and its labels. For example:

0 0 0 0 B-TERM1 0 0 0 0 0 B-TERM2 I-TERM2
This is a dog and that is a panda

0 0 0 B-TERM1 0 0 0 0 B-TERM2     (the labels for the English input sentence)

My question is do you think this is possible using your library if I customize my own multi-input model? And if so, do you have any tips/suggestions for me? It looks like I will mainly be using the Stacked Embedding feature and also referencing this article:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:24 (24 by maintainers)

github_iconTop GitHub Comments

BrikerMancommented, Aug 28, 2019

You need to convert those tokens to digits.

BrikerMancommented, Aug 9, 2019

Just make a label dict then convert label to numeric sequece.


dic = {
"O": 0,
"B-TERM1": 1,
"B-TERM2": 2,
"B-TERM3": 3,
"B-TERM4": 4,

This will work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question answering - Hugging Face Course
Time to look at question answering! This task comes in many flavors, but the one we'll focus on in this section is called...
Read more >
Framing: Key ML Terminology | Machine Learning
Let's explore fundamental machine learning terminology. Labels. A label is the thing we're predicting—the y variable in simple linear regression ...
Read more >
Prompting methods with language models and their ...
Prompting methods with language models and their applications to weak supervision in this machine learning whiteboard by Ryan Smith.
Read more >
Data Labeling: The Authoritative Guide - Scale AI
Data needs to be labeled to help models make these valuable predictions. Data labeling is one of machine learning's most critical and ...
Read more >
How to get predicted class label from predicted probabilities in ...
Currently, I am using the given code bellow to calculated the probabilities score and predicted class labels.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found