[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:
# THREE INPUTS
这是一只狗和这是一只红猫
0 0 0 0 B-TERM1 0 0 0 0 0 B-TERM2 I-TERM2
This is a dog and that is a panda
#OUTPUT
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: https://kashgari.bmio.net/advance-use/multi-output-model/
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (24 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You need to convert those tokens to digits.
Just make a label dict then convert label to numeric sequece.
eg:
This will work