{"id":19031471,"url":"https://github.com/plandes/clj-nlp-wordvec","last_synced_at":"2026-06-19T04:31:51.744Z","repository":{"id":80107491,"uuid":"137961246","full_name":"plandes/clj-nlp-wordvec","owner":"plandes","description":"Word Vector Feature Creation","archived":false,"fork":false,"pushed_at":"2018-06-20T01:44:13.000Z","size":908,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T20:25:20.111Z","etag":null,"topics":["clojure","glove","natural-language-processing","word-embeddings","word-vectors"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plandes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-20T00:50:20.000Z","updated_at":"2018-06-20T01:44:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"be165e20-9cdc-4ed5-a81f-0f09ab8c12c3","html_url":"https://github.com/plandes/clj-nlp-wordvec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/plandes/clj-nlp-wordvec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fclj-nlp-wordvec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fclj-nlp-wordvec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fclj-nlp-wordvec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fclj-nlp-wordvec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plandes","download_url":"https://codeload.github.com/plandes/clj-nlp-wordvec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plandes%2Fclj-nlp-wordvec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34517748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","glove","natural-language-processing","word-embeddings","word-vectors"],"created_at":"2024-11-08T21:23:46.282Z","updated_at":"2026-06-19T04:31:51.724Z","avatar_url":"https://github.com/plandes.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word Vector Feature Creation\n\n[![Travis CI Build Status][travis-badge]][travis-link]\n\nThis library creates word vector features for natural language processing\nprojects.  It does this using cosine similarity using across the most common\nwords found using the [word count calculation] function.\n\nWhile this library is meant to work with the [NLP parse library] and [machine\nlearning library] much like the [general NLP feature creation] library, it\ndoesn't need to.  However, it has a dependency on the [NLP parse library].\n\n\n\n## Obtaining\n\nIn your `project.clj` file, add:\n\n[![Clojars Project](https://clojars.org/com.zensols.nlp/wordvec/latest-version.svg)](https://clojars.org/com.zensols.nlp/wordvec/)\n\n\n## Documentation\n\nAPI [documentation](https://plandes.github.io/clj-nlp-wordvec/codox/index.html).\n\n\n## Usage\n\nUse the `similarity-features` to create the features used in\nthe [model](https://github.com/plandes/clj-ml-model#create-features).  Again,\nthis piggybacks on the [word count calculation], which has to be calculated\non [two pass cross validation](https://github.com/plandes/clj-ml-model#one-pass-traintest).\nFor example:\n\n```clojure\n(:require [zensols.nlparse.parse :as p]\n          [zensols.nlparse.feature.word-count :as wc]\n          [zensols.nlparse.feature.word-similarity :as ws])\n\n(defn create-features\n  ([panon]\n   (create-features panon nil))\n  ([panon context]\n   (let [{:keys [word-count-stats]} context\n         tokens (p/tokens panon)]\n     (binding [wc/*word-count-config* wc-config]\n       (merge (if word-count-stats\n                (wc/label-count-score-features panon word-count-stats))\n              (if word-count-stats\n                (ws/similarity-features tokens word-count-stats)))))))\n```\n\nSee the [unit test case](test/zensols/nlparse/wordvec_test.clj).\n\n\n## Building\n\nTo build from source, do the folling:\n\n- Install [Leiningen](http://leiningen.org) (this is just a script)\n- Install [GNU make](https://www.gnu.org/software/make/)\n- Install [Git](https://git-scm.com)\n- Download the source: `git clone --recurse-submodules https://github.com/plandes/clj-nlp-wordvec \u0026\u0026 cd clj-nlp-wordvec`\n- Build the software: `make jar`\n- Build the distribution binaries: `make dist`\n\nNote that you can also build a single jar file with all the dependencies with: `make uber`\n\n\n## Citation\n\nIf you use this software in your research, please cite with the following\nBibTeX:\n\n```jflex\n@misc{plandes-clj-nlp-wordvec,\n  author = {Paul Landes},\n  title = {Word Vector Feature Creation},\n  year = {2018},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://github.com/plandes/clj-nlp-wordvec}}\n}\n```\n\n\n## References\n\nSee the [general NLP feature creation]library for additional references.\n\n```jflex\n@misc{deeplearning4j,\n  author = {Eclipse Deeplearning4j Development Team},\n  title = {Deeplearning4j: Open-source distributed deep learning for the JVM},\n  year = {2018},\n  publisher = {Apache Software Foundation License 2.0},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://deeplearning4j.org/}}\n}\n```\n\n\n## Changelog\n\nAn extensive changelog is available [here](CHANGELOG.md).\n\n\n## License\n\nCopyright 2018 Paul Landes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\u003c!-- links --\u003e\n[word count calculation]: https://plandes.github.io/clj-nlp-parse/codox/zensols.nlparse.feature.word-count.html#var-calculate-feature-stats\n[NLP parse library]: https://github.com/plandes/clj-nlp-parse\n[machine learning library]: https://github.com/plandes/clj-ml-model\n[general NLP feature creation]: https://github.com/plandes/clj-nlp-feature\n[travis-link]: https://travis-ci.org/plandes/clj-nlp-wordvec\n[travis-badge]: https://travis-ci.org/plandes/clj-nlp-wordvec.svg?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Fclj-nlp-wordvec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplandes%2Fclj-nlp-wordvec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplandes%2Fclj-nlp-wordvec/lists"}