Skip to content

Reduce memory usage? #51

Answered by pemistahl
osma asked this question in Q&A
Aug 4, 2022 · 5 comments · 5 replies
Discussion options

You must be logged in to vote

Hi Osma, thank you for your question and your interest in my library.

I don't see anything in the README that would justify using such huge amounts of RAM compared to other implementations.

Well, the README does mention in section 5 that Lingua uses much larger language models than other libraries. This fact provides for the high detection accuracy but is also the cause of high memory consumption. You are right that the rule engine is not the cause of high RAM usage - on the contrary, it helps to reduce RAM usage a little by filtering out languages which are considered unlikely for the given input text.

I'm wondering if there's some trick that other language detection libraries are per…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by osma
Comment options

You must be logged in to vote
1 reply
@pemistahl
Comment options

Comment options

You must be logged in to vote
1 reply
@pemistahl
Comment options

Comment options

You must be logged in to vote
1 reply
@pemistahl
Comment options

Comment options

You must be logged in to vote
2 replies
@pemistahl
Comment options

@osma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #50 on August 04, 2022 17:45.