Skip to content

Conversation

@ducdauge
Copy link

@ducdauge ducdauge commented Mar 4, 2017

I modified 2 files and added a new one.

  1. desent.py has a new function, embedding, to get representations given a trained model and an input file with one sentence per line. Also, I fixed a minor problems with numpy.round(), which yielded a float rather than an integer.
  2. build_dictionary.py now uses codecs tho handle input and output files. Otherwise, it considers only ansi-encoded characters.
  3. sentence_representation.py is a wrapper for convenience's sake. It invokes the relevant functions in desent.py and allows to modify the configuration easily.

ducdauge added 3 commits March 4, 2017 16:28
The function embedding (and its sub-routines) allow to get sentence representations given a trained model and an input file with one sentence per line.
A minor fix concerns numpy.round(), whose output is cast into an integer.
A wrapper file to invoke the embedding function in desent.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant