Skip to content
LibN3L: A light-weight neural network package for natural language
C++ C
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Alphabet.h enable model save and loading, revise some file names Dec 10, 2015
AttRecursiveGatedNN.h add save/load module Dec 10, 2015
AttentionPooling.h add save/load module Dec 10, 2015
AvgPerceptron1O.h add save/load module Dec 10, 2015
BiLayer.h add save/load module Dec 10, 2015
CheckGrad.h Add checkgrad module, thus checkgrad codes in each Classifier are no … Dec 7, 2015
Concat.h Initial Version Oct 20, 2015
Dropout.h Initial Version Oct 20, 2015
GRNN.h fix some bugs in LSTM Dec 20, 2015
GatedPooling.h add save/load module Dec 10, 2015
Hash_map.hpp Initial Version Oct 20, 2015
IO.h
LSTM.h fix some bugs in LSTM Dec 20, 2015
LSTM_CHD.h fix some bugs in LSTM Dec 20, 2015
LSTM_KER.h fix some bugs in LSTM Dec 20, 2015
LSTM_STD.h fix some bugs in LSTM Dec 20, 2015
LookupTable.h add save/load module Dec 10, 2015
MLCRFLoss.h revision of matrix initialization Dec 22, 2015
MMCRFLoss.h revision of matrix initialization Dec 22, 2015
Metric.h enable model save and loading, revise some file names Dec 10, 2015
MyLib.h Initial Version Oct 20, 2015
N3L.h fix some bugs in LSTM Dec 20, 2015
NRMat.h For NNTransitionSegmentor Dec 16, 2015
Pooling.h Initial Version Oct 20, 2015
README.md update README Dec 10, 2015
RNN.h add save/load module Dec 10, 2015
RecursiveGatedNN.h add save/load module Dec 10, 2015
RecursiveNN.h add save/load module Dec 10, 2015
SoftMaxLoss.h Adding a gated recursive neural network with an attention mechanism; … Nov 6, 2015
SparseUniLayer.h add save/load module Dec 10, 2015
SparseUniLayer1O.h add save/load module Dec 10, 2015
TensorLayer.h add save/load module Dec 10, 2015
TriLayer.h add save/load module Dec 10, 2015
TriLayerLSTM.h add save/load module Dec 10, 2015
UniLayer.h add save/load module Dec 10, 2015
UniLayer1O.h revision of matrix initialization Dec 22, 2015
Utils.h enable model save and loading, revise some file names Dec 10, 2015
Utiltensor.h For NNTransitionSegmentor Dec 16, 2015
Windowlized.h Initial Version Oct 20, 2015
description(expect for lrec2016).pdf Adding a gated recursive neural network with an attention mechanism; … Nov 6, 2015

README.md

LibN3L: A light-weight neural network package for natural language.

Just include the directory in your code and call it by "#include N3L.h"

Installation:

Prerequisition:
    mshadow
Please download and include the directory "https://github.com/dmlc/mshadow/tree/master/mshadow" in your applications:
(a) first copy the directory into your computer;
(b) then include it in your applications;
If have any problems, please mason.zms@gmail.com

If you want to make mshadow work, you need to install certain libaries such as openblas and cuda.
I suggest use openblas since the current version does not support cuda yet, which is our future work.
Find it here:
https://github.com/xianyi/OpenBLAS
Compile and install:
make USE_THREAD=0     ##single thread version, one can use multi-thread version as well.
make install            ##default path /opt/OpenBLAS
cp /opt/OpenBLAS/include/. /usr/include/
cp /opt/OpenBLAS/lib/. /usr/lib(64)/

Examples:

Some examples are realeased at:
https://github.com/SUTDNLP/NNSegmentation
https://github.com/SUTDNLP/NNPOSTagging
https://github.com/SUTDNLP/NNNamedEntity (already support model save/load module)
You can see the performances in [description.pdf](description(expect for lrec2016).pdf)
https://github.com/SUTDNLP/OpenTargetedSentiment

Cite:

The code of my EMNLP2015 paper:
Meishan Zhang; Yue Zhang; Duy Tin Vo. Neural Networks for Open Domain Targeted Sentiment. EMNLP2015.

Updating...

  • 2015-12-10: support model saving and loading.
You can’t perform that action at this time.