cobe
cobe copied to clipboard
API method for brain statistics
Hi,
Is there some type of command/API method to grab statistics from the brain like known tokens, etc?
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?