2 ms·
This is awesome! Can I get one that goes the other way? I give you a definition and you give me a plausible but invalid word...
by pbnjay 11y ago
This is awesome! Can I get one that goes the other way? I give you a definition and you give me a plausible but invalid word...
- cfcef 11y agoThat's possible. It's using Andrej Karpathy's char-rnn. Presumably it's doing something like running the trained model with 'th sample.lua -model something.t7 -primetext '$WORD, ' and taking everything after the comma as the definition. So to reverse this, you would take the dictionary corpus, remove '^$WORD, ', and suffix ', $WORD$'. Then it will be training to predict a final word conditional on the definitions, and you can do the same thing with the new model, feed in '-primetext '$DEFINITION, ' to get out a word.
- themadstork 11y agoHey, I'm the creator. This would probably work, you'd want to use a unique delimiter character that's not in the rest of the corpus --- so not a comma. (I'm using the pipe character.)