Skip to content

Notes on _emotion.py#103

Open
LourensVeen wants to merge 1 commit intoNLeSC:masterfrom
LourensVeen:emotion-notes
Open

Notes on _emotion.py#103
LourensVeen wants to merge 1 commit intoNLeSC:masterfrom
LourensVeen:emotion-notes

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