Skip to content

Instantly share code, notes, and snippets.

@kiwenlau
kiwenlau / Seq2seq.py
Created June 12, 2018 09:19 — forked from Orbifold/Seq2seq.py
Sequence to sequence translation in Keras.
'''Sequence to sequence example in Keras (character-level).
This script demonstrates how to implement a basic character-level
sequence-to-sequence model. We apply it to translating
short English sentences into short French sentences,
character-by-character. Note that it is fairly unusual to
do character-level machine translation, as word-level
models are more common in this domain.
# Summary of the algorithm
@kiwenlau
kiwenlau / a_mongo-connector_tutorial.md
Created May 26, 2018 11:40 — forked from apanimesh061/a_mongo-connector_tutorial.md
mongo-connector with ES 2.2.0 and Mongo 2.6

Before starting please have a mongo replica set initiated. I have mongo running at localhost:27170 and elasticsearch at localhost:9200

The test dataset I used is available on the mongodb website.

I am using MongoDB 2.6 and Elasticsearch 2.2.0 on a Windows machine.

Here I have tested three cases:

  • An index already exists, mc-test-index in this case
@kiwenlau
kiwenlau / installAndroidSDKOnMac.md
Last active August 1, 2017 06:41 — forked from Erichain/installAndroidSDKOnMac.md
Mac OS下安装和配置android-sdk

MAC OS下安装和配置android-sdk

安装

在MAC上安装android-sdk,标准的安装方法是使用homebrew,运行如下命令:

brew update
brew cask install android-sdk