Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0b17c7d
Showing
50 changed files
with
12,482 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Node.js | ||
frontend/node_modules/ | ||
dist | ||
|
||
# Python | ||
__pycache__ | ||
backend/venv | ||
*.pyc | ||
|
||
# macOs | ||
.DS_Store |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 oleg-agapov | ||
|
||
Permission 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: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE 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. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: python run.py |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Indonesian Word Embedding | ||
A web application that demonstrates Indonesian word embedding, inspired by [Word embedding demo](bionlp-www.utu.fi/wv_demo/). | ||
|
||
See the demo: http://indonesian-word-embedding.herokuapp.com | ||
|
||
Right now it serves pre-trained word vectors from [here](https://github.com/Kyubyong/wordvectors). The word vectors are trained on the Word2vec model from Wikipedia texts using the CBOW training algorithm. | ||
|
||
## 💡 future improvements | ||
- **Refactoring**. This is my time using Vue so I'm sure there are a lot of things to be refactored that I haven't known yet! | ||
- **Serves multiple models**. Not only Word2vec using CBOW but also Word2vec using skip-gram or even FastText. | ||
- **Add more in-depth explanations**, possibly for each section. | ||
- As more explanations are added, **consider using Vuex**. | ||
- **Indonesian translation**. | ||
|
||
## 💭 contribute | ||
If you're interested to work in improving the points above or if you have any idea, feel free to make a pull request! 🙏 | ||
|
||
## ⚙ setup | ||
|
||
``` bash | ||
# install front-end | ||
cd frontend | ||
npm install | ||
|
||
# serve with hot reload at localhost:8080 | ||
npm run dev | ||
|
||
# build for production/Flask with minification | ||
npm run build | ||
|
||
# install back-end | ||
cd ../backend | ||
virtualenv -p python3 venv | ||
source venv/bin/activate | ||
pip install -r requirements.txt | ||
cd .. | ||
|
||
# serve back-end at localhost:5000 | ||
FLASK_APP=run.py flask run | ||
``` | ||
|
||
## credits | ||
- [Web app boilerplate](https://github.com/oleg-agapov/flask-vue-spa) | ||
- [Pre-trained word vectors](https://github.com/Kyubyong/wordvectors) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
click==6.7 | ||
Flask==0.12.2 | ||
Flask-Cors==3.0.3 | ||
itsdangerous==0.24 | ||
Jinja2==2.9.6 | ||
MarkupSafe==1.0 | ||
six==1.11.0 | ||
Werkzeug==0.12.2 | ||
gensim==3.2.0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><head><meta charset=utf-8><title>Indonesian Word Embedding</title><link href=/static/css/app.6453b3869705c8c9b133ca1f76955558.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.7f1c2e8f31b366a39c24.js></script><script type=text/javascript src=/static/js/vendor.1dd1f9dcec4da471c2e0.js></script><script type=text/javascript src=/static/js/app.3d74719110ce005664c6.js></script></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.