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

Notes on _emotion.py #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Notes on _emotion.py #103

wants to merge 1 commit into from

Conversation

LourensVeen
Copy link
Member

Only one here: this file is a rather messy with the initialization interleaved with functions. Could we wrap everything into functions and then just have a single call to an init function at the top scope? And rename X_train and Y_train x_train and y_train?

@larsmans
Copy link
Collaborator

We should probably be using functions decorated as Celery signals. I tried that with the SentiWords tagger and the worker_process_init signal, but the problem with that is that it has a fixed 4s timeout and many tasks take much more than 4s to initialize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants