Skip to content

Add property to disable in-memory model cache#6

Merged
ragerri merged 4 commits intoixa-ehu:masterfrom
c-w:master
May 26, 2017
Merged

Add property to disable in-memory model cache#6
ragerri merged 4 commits intoixa-ehu:masterfrom
c-w:master

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented May 8, 2017

Currently, the part-of-speech and lemmatizer models get cached in memory after they've been read from disk. This can lead to very high memory usage, especially if we have a single process that handles requests for many different languages.

This pull request adds a property called useModelCache that lets users disable the in-memory caching to reduce the memory usage at the expense of reading more data from disk. By default, the property is enabled so that the public API doesn't change from the previous behavior.

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