Daniel Ricks

Results 9 comments of Daniel Ricks

I don't know of any other pre-trained decoders, but you can use the code to generate your own. Alternatively, I've written a simplified version here: https://github.com/danielricks/penseur

You have to read the text in before it can be encoded. In the example on the project page, it shows an example.

If the 'open' command is throwing errors, that has nothing to do with Penseur. If you're having trouble saving things, know that pickle has a [hard time saving dictionaries](https://stackoverflow.com/questions/11218477/how-can-i-use-pickle-to-save-a-dict). Again,...

The way the BookCorpus was created is different from how training models work, at least using the code in training/tools.py. Their native model contains both 'utable' and 'btable', but when...

I was able to get it to work. There are a couple other parameters you should probably alter as well, namely "saveto" and"saveFreq." You could check out some interface code...

Yeah you can. I've written a method that does just that in penseur_utils.py. Check out the code here: https://github.com/danielricks/penseur

def nn_words(table, wordvecs, query, k=10) 'table' is either "model['utable]" or "model['btable']" - I'm not sure what the difference is off the top of my head. 'wordvecs' is the output of...

Here's an example of use for other methods as well: https://github.com/danielricks/penseur

None of that is necessary. As long as it is considered a string in Python, it should work. You need stopwords and punctuation because everything in the sentence is used...