Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Virtualenv installation and Emoji Codes Mapping #15

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ To start out with, have a look inside the [examples/](examples) directory. See [

Please consider citing our [paper](https://arxiv.org/abs/1708.00524) if you use our model or code (see below for citation).

## Emoji Codes
Here the emoji codes mapping to model classes.

![emoji_overview](https://user-images.githubusercontent.com/163333/31664953-a4ea8836-b347-11e7-82b4-999b41949786.png)

## Frameworks

This code is based on Keras, which requires either Theano or Tensorflow as the backend. If you would rather use pyTorch there's an implementation available [here](https://github.com/huggingface/torchMoji), which has kindly been provided by Thomas Wolf.
Expand All @@ -45,6 +50,14 @@ Run the included script, which downloads the pretrained DeepMoji weights (~85MB)
python scripts/download_weights.py
```

## Virtualenv installation with Default backend
To install via `virtualenv` and the default Keras backend `tensorflow`
```
virtualenv .env
. .env/bin/activate
pip install -r requirements.text
```

## Testing
To run the tests, install [nose](http://nose.readthedocs.io/en/latest/). After installing, navigate to the [tests/](tests) directory and run:

Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tensorflow
emoji==0.4.5
h5py==2.7.0
Keras==2.0.7
numpy==1.13.1
scikit-learn==0.19.0
text-unidecode==1.0