Skip to content

Only import NLTK and other modules when they are needed. #877

@davidbaines

Description

@davidbaines

Would it be practical to move the importing of NLTK and other large imports so that they are only imported when required.

Move slow imports to where they are needed.

  1. Not every script needs NLTK and checking that it has been downloaded slows every script.
  2. Maybe there are other 'slow imports' that could be moved so that they are loaded only when required.

Metadata

Metadata

Labels

No labels
No labels

Projects

Status

🏗 In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions