Comments (5)
As for me, loading the whole corpus in a single file is rather a burden anyway. A three level index would be more useful (file, sentence, token). But that would probably require larger changes of the whole architecture, I am afraid. And adding a third number to the index wouldn't solve the problem, even if both the "file" and "sentence" pointers remain 32-bit - together they still make up 64 bits.
from colibri-core.
This current line of implementation is a rather major refactoring which will take some more time, so I'm gonna start again and try a more 'quick' fix, although that might come at increases memory cost in certain computations.
from colibri-core.
As for me, loading the whole corpus in a single file is rather a burden anyway. A three level index would be more useful (file, sentence, token). But that would probably require larger changes of the whole architecture, I am afraid.
Yeah, that would be another major refactoring. I don't think we can go in that direction. You'd have to solve that in some wrapper stage (mapping file,sentence to some kind of aggregated sentence)
And adding a third number to the index wouldn't solve the problem, even if both the "file" and "sentence" pointers remain 32-bit - together they still make up 64 bits.
Indeed, that would come at an extra memory penalty so I don't want to go there.
from colibri-core.
Solved in v2.5.0 release
from colibri-core.
Last but not least, benchmarks of 32-bit size descriptors vs 64-bit size descriptors (in patterpointers) show a small increase in peak memory:
benchmarks32.txt
benchmarks64.txt
from colibri-core.
Related Issues (20)
- No flexgram support in IndexedPatternModel.getsubchildren() / getsubparents() yet
- Discrepancy between totaloccurrencesingroup and patterns in getreverseindex HOT 3
- Pattern.ngrams() performance too slow for very large patterns, can be sped up
- Can't compile on CentOS 6.6 HOT 2
- Load corpora with mmap HOT 1
- Process comments of reviewers of the Colibri Core paper HOT 3
- buildpattern() does not raise an exception when unknown tokens are presented in the input and allowunknown=false (default)!
- tokens/coverage results not split out per n category? HOT 1
- Investigate improved scalability using use of out-of-memory datastructures HOT 1
- Implement ability to filter on (n)PMI for getleftneighbours(), getleftcooc(), etc..
- Class encoding fails if input only contains one line without new line?
- [Queries] Ability to create a model and cls from multiple input files
- Error with Tibetan Unicode HOT 2
- how to expose colibri-ngrams from Python API? HOT 4
- Wrong threshold in model.filter HOT 3
- Missing data in indexed model on large data set; yields much lower counts than unindexed model on the same data with the same parameters! HOT 4
- Problems compiling with anaconda HOT 1
- Non-functioning constraints in .getrightneighbours(), .getcooc() etc. HOT 2
- Package for Alpine Linux HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colibri-core.