Comments (3)
I have same problem when i run crfsuite version 0.12:
==25384==
==25384== HEAP SUMMARY:
==25384== in use at exit: 1,320 bytes in 1 blocks
==25384== total heap usage: 1,139 allocs, 1,138 frees, 62,120,243 bytes allocated
==25384==
==25384== 1,320 bytes in 1 blocks are definitely lost in loss record 1 of 1
==25384== at 0x4C2FA50: calloc (vg_replace_malloc.c:711)
==25384== by 0x40E9A3: crf1dc_set_num_items (in /home/kl/gr/crfsuite-0.12/frontend/build/crfsuite)
==25384== by 0x40821B: tagger_set (in /home/kl/gr/crfsuite-0.12/frontend/build/crfsuite)
==25384== by 0x4053A9: tag (tag.c:321)
==25384== by 0x40584C: main_tag (tag.c:433)
==25384== by 0x404221: crfsuite (main.c:149)
==25384== by 0x40401F: main (main.c:105)
==25384==
==25384== LEAK SUMMARY:
==25384== definitely lost: 1,320 bytes in 1 blocks
==25384== indirectly lost: 0 bytes in 0 blocks
==25384== possibly lost: 0 bytes in 0 blocks
==25384== still reachable: 0 bytes in 0 blocks
==25384== suppressed: 0 bytes in 0 blocks
==25384==
==25384== For counts of detected and suppressed errors, rerun with: -v
==25384== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Valgrind show that some thing in fucntion crf1dc_set_num_items have leak. Then i add this line: free(ctx->state); after line 99 (after line: free(ctx->alpha_score);) of file crfsuite-0.12/lib/crf/src/crf1d_context.c then i make && make install again. Run valgrind with my program again and have no leak as below:
==31489==
==31489== HEAP SUMMARY:
==31489== in use at exit: 0 bytes in 0 blocks
==31489== total heap usage: 1,139 allocs, 1,139 frees, 62,120,243 bytes allocated
==31489==
==31489== All heap blocks were freed -- no leaks are possible
==31489==
==31489== For counts of detected and suppressed errors, rerun with: -v
==31489== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
I think it's helpful for fix this issue.
from crfsuite.
@chokkan bump!
from crfsuite.
So this is is why we don't hear back from @chokkan :) He is playing soccer! :)
from crfsuite.
Related Issues (20)
- Exclude sentence with only O HOT 1
- Character n-grams HOT 2
- R wrapper available at https://github.com/bnosac/crfsuite HOT 1
- lib/cqdb/src/cqdb.c and Wstringop-truncation HOT 3
- mersenne twister HOT 1
- meaning of min_freq HOT 3
- Old lookup3.c file, `k8` undeclared
- Deprecate Python SWIG binding and make python-crfsuite the canonical binding?
- Unable to compile a very simple Tagger with the C++ API HOT 2
- Comparison with SimString
- How do I use glove on crfsuite with python? HOT 2
- Different results across platforms (Windows, Ubuntu, etc...) HOT 2
- Why are my results so different on identical runs?
- *deleted*
- Are transition features conditioned on observations supported?
- How to install lib on the M1 MacBooks? HOT 1
- Results difference between command-line CRFsuite vs Python CRFsuite
- Interpreting the CRFsuite Model File
- Hindi Language NER Training format HOT 15
- start with CRF suite in windows HOT 2
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 crfsuite.