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

Closed
frascuchon opened this issue Oct 5, 2021 · 13 comments
Closed

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

frascuchon opened this issue Oct 5, 2021 · 13 comments
Assignees
Labels
good first issue Indicates a good issue for first-time contributors status: help wanted Indicates that a maintainer wants help on an issue or pull request type: documentation Improvements or additions to documentation
Projects

Comments

@frascuchon
Copy link
Member

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 type: documentation Improvements or additions to documentation good first issue Indicates a good issue for first-time contributors status: help wanted Indicates that a maintainer wants help on an issue or pull request labels Oct 5, 2021
@iakhil
Copy link
Contributor

iakhil commented Oct 28, 2021

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

@dvsrepo
Copy link
Member

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
Member

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 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
Member Author

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 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
Member

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 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
@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the status: stale Indicates that there is no activity on an issue or pull request label Sep 23, 2022
@github-actions
Copy link

github-actions bot commented Oct 9, 2022

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as completed Oct 9, 2022
Release automation moved this from Backlog to Waiting Release Oct 9, 2022
@frascuchon frascuchon reopened this Oct 9, 2022
@github-actions github-actions bot removed the status: stale Indicates that there is no activity on an issue or pull request label Oct 10, 2022
@krishnajalan
Copy link
Contributor

Hey! Can I pick this issue under Hacktoberfest ? if its still pending?

@dvsrepo
Copy link
Member

dvsrepo commented Oct 17, 2022

Absolutely! It's still pending

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Indicates a good issue for first-time contributors status: help wanted Indicates that a maintainer wants help on an issue or pull request type: documentation Improvements or additions to documentation
Projects
No open projects
Release
Waiting Release
Development

Successfully merging a pull request may close this issue.

5 participants