Comments (5)
Answering my own question, it looks like it's 10.
It should probably be in the method description. Thanks!
Original comment by [email protected]
on 7 May 2013 at 1:38
from berkeleylm.
Sorry, I thought I had replied.
That particular method doesn't actually know what base it is, since the LM was
probably constructed from an ARPA file, and those files can be in whatever base
they want (they are stored as logarithms). Building an LM with BerkeleyLM done
in base 10 to mimic the behaviour of SRILM. So the answer is almost certainly
"10", unless you constructed your LM in a non-standard way.
Original comment by [email protected]
on 7 May 2013 at 2:19
from berkeleylm.
Thanks!
I still think it should be a part of the specification because the contract of
an n-gram LM is a proper distribution p(w_i|...), and we can't have it without
knowing the log base. It's true that many applications don't care about the log
base, but some do (e.g., perplexity, text generation).
Original comment by [email protected]
on 7 May 2013 at 9:49
from berkeleylm.
I glanced at the code, and it looks as though StupidBackoff is using log base
e, while the Kneser-Ney models are using log base 10. I've been using this
package for my research, and it'd be nice to know what exactly the values are
supposed to be.
Original comment by [email protected]
on 15 Nov 2013 at 7:56
from berkeleylm.
Sorry, I missed this somehow.
I've added some comments in the latest SVN to hopefully clear this up. I'm not
going to change it, just because I want to mimic SRILM in constructing
Kneser-Ney LMs, and also don't want to change the logarithm base on
StupidBackoffLms because that would change the models on people who are
currently using them. Hope that clarifies things!
Original comment by [email protected]
on 6 Dec 2013 at 6:30
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
- 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
- Trying to build a language model on higher-order n-grams. HOT 3
- 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.