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

How to show progress bar in pipeline? [QUESTION] #1323

Open
Hansyvea opened this issue Dec 17, 2023 · 4 comments
Open

How to show progress bar in pipeline? [QUESTION] #1323

Hansyvea opened this issue Dec 17, 2023 · 4 comments

Comments

@Hansyvea
Copy link

Hi, I have been using stanza bulkprocess to tokenize and ssplit a rather large text stored in a dataframe.
My question is how to show progress bar when running the pipeline?

import stanza
import pandas as pd

dummy_df = pd.read_parquet("../Data/Data_Frame/1987.parquet")
dummy = list(dummy_df.head(1000).TEXT)
nlp = stanza.Pipeline(lang='en', processors='tokenize')
docs = nlp.bulk_process(dummy)
...
@AngledLuffa
Copy link
Collaborator

AngledLuffa commented Dec 17, 2023 via email

@Hansyvea
Copy link
Author

Hansyvea commented Dec 18, 2023

Sorry, but that functionality currently does not exist (for the tokenize annotator, at least)

thank you for your timely reply. Another question emerges while I was test running the tokenizing pipeline, that presently the GPU utilization rate is rather low (5% to 14% of my rtx 3070), how to maximize the GPU usage so as to make the whole process faster?

the data was the NYT annotated corpus, and there are 100'000 articles in the dataframe dummy_df. I tried to run the pipeline on the whole dataframe before sleep only to find the program crashed for unknown reason.

@AngledLuffa
Copy link
Collaborator

Certain annotators do quite a bit of their manipulation on the CPU. Fixing that and getting better GPU utilization would be a bit of a project. It is on the list of things to do, though

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants