简体   繁体   中英

Silent Charniak Parse when it can not parse sentence - It does not work

I am using charniak parser - bllip-parser for chunking output. Sometimes parser can not parse sentence. As README , there is one argument '-S' which tells parser to remain silent when it can not parse any sentence and it just goes to next sentence. But using this argument, parser does not go to next sentence. It still throws exception.

My input to parser is :

./parseIt, -l400, -K, -t4, -S, -EInputTagFile.txt, ../DATA/EN/, InputTextFile.txt

Output of this command (error) :

Warning [parseIt.C:266] Sentence 4: Parse failed from 0, inf or nan probabililty -- reparsing without POS constraints
Warning [ChartBase.C:172] Sentence 4: estimating the counts on a zero-probability sentence
parseIt: MeChart.C:105: Bst& MeChart::findMapParse(): Assertion `s' failed.
Aborted (core dumped)  

What is wrong with '-S' argument ? Any suggestions ?

The warnings were due to a bug and should be fixed now. See the GitHub ticket .

The parser shouldn't be run in multithreaded mode (it's not really threadsafe) which I suspect is the source of the assertion failure and subsequent abort() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM