Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
galuhsahid committed Jan 30, 2018
0 parents commit 0b17c7d
Show file tree
Hide file tree
Showing 50 changed files with 12,482 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
@@ -0,0 +1,16 @@
# Logs
logs
*.log
npm-debug.log*

# Node.js
frontend/node_modules/
dist

# Python
__pycache__
backend/venv
*.pyc

# macOs
.DS_Store
21 changes: 21 additions & 0 deletions LICENSE
@@ -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.
1 change: 1 addition & 0 deletions Procfile
@@ -0,0 +1 @@
web: python run.py
44 changes: 44 additions & 0 deletions README.md
@@ -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)
9 changes: 9 additions & 0 deletions backend/requirements.txt
@@ -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
1 change: 1 addition & 0 deletions dist/index.html
@@ -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>
9 changes: 9 additions & 0 deletions dist/static/css/app.6453b3869705c8c9b133ca1f76955558.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/static/js/0.136bbfb5fa442362535b.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/static/js/0.136bbfb5fa442362535b.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b17c7d

Please sign in to comment.