This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Modifying clojure CNN text classification example#13865
Merged
gigasquid merged 3 commits intoapache:masterfrom Jan 13, 2019
Merged
Modifying clojure CNN text classification example#13865gigasquid merged 3 commits intoapache:masterfrom
gigasquid merged 3 commits intoapache:masterfrom
Conversation
Member
|
Thanks for your work in improving this. I'm looking forward to taking it for a spin 😸 |
gigasquid
approved these changes
Jan 13, 2019
Member
gigasquid
left a comment
There was a problem hiding this comment.
Fantastic! The glove trains much faster and for the first time, I was able to train word2vec on my laptop. Great job 💯 👏
| (println "Finished") | ||
| {:num-embed dim :word2vec word2vec}))) | ||
| (defn- load-w2v-vectors | ||
| "Lazily loads the word2vec vectors given a data input stream `dis`, |
haohuanw
pushed a commit
to haohuanw/incubator-mxnet
that referenced
this pull request
Jun 23, 2019
* Modifying clojure CNN text classification example * Small fixes * Another minor fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
:gloveor:word2vec. It can also be used without any pretrained embedding in which case an embedding is learned from training data.GC limit exceededissue.word2vecembeddings which required some tweaks in the way the model was being loaded. To optimize memory usage, eithermax-vectorscan be loaded or avocabcan be passed in so that only a subset of embeddings are loaded.Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Reviewers
@gigasquid