cobe icon indicating copy to clipboard operation
cobe copied to clipboard

API method for brain statistics

Open andrewtryder opened this issue 12 years ago • 1 comments

Hi,

Is there some type of command/API method to grab statistics from the brain like known tokens, etc?

andrewtryder avatar Jan 27 '13 16:01 andrewtryder

There's nothing currently in the API, though depending on the statistics this may be easy to add. I've wanted to add estimated probabilities for n-grams (P(token|token1,token2,token3)) and possibly some deeper statistics like word collocations.

The list of known tokens can be easily extracted on the command line for cobe 2.x:

$ sqlite3 cobe.brain "SELECT text FROM tokens"

Is there anything in particular you're looking for?

pteichman avatar Jan 29 '13 15:01 pteichman