Futhon is a programming language designed for Natural Language Processing and Machine Learning.
Python 3.5+ is required.
$ git clone https://github.com/delihiros/futhon.git
$ cd futhon
$ pip install -r requirements.txt -r test-requirements.txt
$ python src/repl.py
python setup.py test
(def np (import numpy))
(def chainer (import chainer))
(def l1 (chainer.links.Linear 4 3))
(def l2 (chainer.links.Linear 3 2))
(def my-forward
(fn [x] (l2 (l1 x))))
(def x (.astype (np.array [[1 2 3 4]]) np.float32))
(.data (my-forward x))
; [[-1.02830815 0.6110245 ]]