The Wayback Machine - https://web.archive.org/web/20220810005846/https://github.com/recognai/rubrix/issues/419
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add text2text example (e.g., text summarisation) #419

Open
frascuchon opened this issue Oct 5, 2021 · 8 comments
Open

Add text2text example (e.g., text summarisation) #419

frascuchon opened this issue Oct 5, 2021 · 8 comments
Assignees
Labels
documentation good first issue help wanted
Projects

Comments

@frascuchon
Copy link
Contributor

@frascuchon frascuchon commented Oct 5, 2021

Add the text summarisation fine-tuning tutorial similar to sentiment classifier fine-tuning tutorial:

https://rubrix.readthedocs.io/en/stable/tutorials/06-labeling-finetuning.html#3.-Fine-tune-the-pre-trained-mode

@frascuchon frascuchon added documentation good first issue help wanted labels Oct 5, 2021
@iakhil
Copy link
Contributor

@iakhil iakhil commented Oct 28, 2021

I'd like to work on this, however, it seems the URL provided is outdated/broken.

@dvsrepo
Copy link
Contributor

@dvsrepo dvsrepo commented Oct 28, 2021

Hi @iakhil ! You are right!

I think the best for this issue is to add a text summarization example here:

https://rubrix.readthedocs.io/en/stable/guides/task_examples.html#Text2Text-(Experimental)

The idea is use text summarization pretrained pipeline from Huggingface (https://huggingface.co/transformers/main_classes/pipelines.html#summarizationpipeline) and add the example in this notebook (after the machine translation one):

https://github.com/recognai/rubrix/blob/master/docs/guides/task_examples.ipynb

For example:

summarizer = pipeline("summarization")
# return three predictions
predictions = summarizer("A LONG TEXT....", num_return_sequences=3)

# log three predictions in rubrix
# follow the machine translation example
@dvsrepo dvsrepo assigned dvsrepo and iakhil and unassigned dvsrepo Oct 28, 2021
@dvsrepo
Copy link
Contributor

@dvsrepo dvsrepo commented Nov 5, 2021

Hi @iakhil , did you manage to take a look at this? Let us know if you need support

@iakhil
Copy link
Contributor

@iakhil iakhil commented Nov 5, 2021

Hey! In order to log predictions in Rubrix, the Docker-contained web app should be running, right? When I try to run it using the first method, I get the following error:

E:\rubrix>wget -O docker-compose.yml https://raw.githubusercontent.com/recognai/rubrix/master/docker-compose.yaml && docker-compose up converted 'https://raw.githubusercontent.com/recognai/rubrix/master/docker-compose.yaml' (ASCII) -> 'https://raw.githubusercontent.com/recognai/rubrix/master/docker-compose.yaml' (UTF-8) --2021-11-06 02:35:07-- https://raw.githubusercontent.com/recognai/rubrix/master/docker-compose.yaml Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.108.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected. Unable to establish SSL connection.

How should I go about it?

@frascuchon
Copy link
Contributor Author

@frascuchon frascuchon commented Nov 12, 2021

Hi @iakhil

There are some troubles with SSL certificates downloading the docker-compose.yml file.

You can just copy the file content and create it locally. Then launch the docker-compose up command.

I hope this helps you

@iakhil
Copy link
Contributor

@iakhil iakhil commented Nov 12, 2021

Thanks! I got it running. Are we supposed to have three predictions (as denote by the value of num_return_sequences)? In Rubrix, I can see only one prediction for both machine translation and text summarization.

@dvsrepo
Copy link
Contributor

@dvsrepo dvsrepo commented Dec 6, 2021

Hi @iakhil, sorry for the late reply. In principle you should be able to view the 3 predictions using the arrows on both the annotation and explore mode. Would you mind to share a screenshot with the records for which you don't see the predictions?

@iakhil
Copy link
Contributor

@iakhil iakhil commented Dec 14, 2021

Earlier, I had connected to the server locally using python -m rubrix.server but now it doesn't seem to work. I get an error that says ERROR: Application startup failed. Exiting. Any way to fix this?

@frascuchon frascuchon added this to Backlog in Release via automation Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation good first issue help wanted
3 participants