Comments (3)
Wanted to add that the NullPointerException persists even when I use the
original vocab_cs.gz file (instead of the dummy empty file that I initially
tried).
Original comment by [email protected]
on 21 Nov 2014 at 4:25
from berkeleylm.
Okay, so I have tried debugging for a few hours now, but no success yet. Here's
a toy data I had created for my debugging efforts. Sharing it, in case it
helps. As far as I can see, it stays true to the Google n-gram format, but
after adding n-grams, the same NullPointerException is thrown:
120 missing suffixes or prefixes were found, doing another pass to add n-grams {
Exception in thread "main" java.lang.NullPointerException
at edu.berkeley.nlp.lm.io.LmReaders.buildMapCommon(LmReaders.java:473)
at edu.berkeley.nlp.lm.io.LmReaders.secondPassGoogle(LmReaders.java:417)
at edu.berkeley.nlp.lm.io.LmReaders.readLmFromGoogleNgramDir(LmReaders.java:228)
at edu.berkeley.nlp.lm.io.LmReaders.readLmFromGoogleNgramDir(LmReaders.java:204)
Original comment by [email protected]
on 21 Nov 2014 at 7:57
Attachments:
from berkeleylm.
I don't intend to support this use case. The code assumes that lower order
n-grams are available for each higher order n-gram. If you manage to get this
working yourself, let me know and I'd be happy to patch things in!
Original comment by [email protected]
on 6 Dec 2014 at 11:51
- Changed state: WontFix
from berkeleylm.
Related Issues (20)
- ArrayIndexOutOfBoundsException while calling getLogProb HOT 8
- Runtime exception: Hash map is full with 100 keys. Should never happen. HOT 16
- What's the log base of NgramLanguageModel.getLogProb() ? HOT 5
- Can I feed this library raw counts instead of text files, and have it compute the Kneser Ney probabilities for me? HOT 1
- ArrayOutOfBoundsException when reading in a large ARPA file. HOT 7
- Are the log probabilities comparable across language models? HOT 4
- Cannot train unigram model with Kneser-Ney HOT 2
- Unrealistic perplexity HOT 3
- broken link on http://tomato.banatao.berkeley.edu:8080/berkeleylm_binaries/ HOT 1
- StarPos and EndPos for ngram log probability HOT 3
- Getting NAN on last trigram when using google binary HOT 1
- Frequency Map HOT 1
- Calculating log probability over larger document
- Unknown Values
- Old mvn file
- no start token with LmReaders.readNgramMapFromBinary?
- no license information
- Documentation, usage, etc.
- creating and reading arpa files is 1. locale dependant 2. seems to have problems with multiple tabs in the text 3. seems to have some problem with the lack of newlines HOT 3
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 berkeleylm.