GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SUTDNLP/NNSegmentation: Word segmentation using neural networks based on package https://github.com/SUTDNLP/LibN3L

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
basic
basic
 
 
example
example
 
 
.gitignore
.gitignore
 
 
CMakeLists.txt
CMakeLists.txt
 
 
GRNNCRFMLLabeler.cpp
GRNNCRFMLLabeler.cpp
 
 
GRNNCRFMLLabeler.h
GRNNCRFMLLabeler.h
 
 
GRNNCRFMMLabeler.cpp
GRNNCRFMMLabeler.cpp
 
 
GRNNCRFMMLabeler.h
GRNNCRFMMLabeler.h
 
 
GRNNLabeler.cpp
GRNNLabeler.cpp
 
 
GRNNLabeler.h
GRNNLabeler.h
 
 
GatedCRFMLLabeler.cpp
GatedCRFMLLabeler.cpp
 
 
GatedCRFMLLabeler.h
GatedCRFMLLabeler.h
 
 
GatedCRFMMLabeler.cpp
GatedCRFMMLabeler.cpp
 
 
GatedCRFMMLabeler.h
GatedCRFMMLabeler.h
 
 
GatedLabeler.cpp
GatedLabeler.cpp
 
 
GatedLabeler.h
GatedLabeler.h
 
 
LSTMCRFMLLabeler.cpp
LSTMCRFMLLabeler.cpp
 
 
LSTMCRFMLLabeler.h
LSTMCRFMLLabeler.h
 
 
LSTMCRFMMLabeler.cpp
LSTMCRFMMLabeler.cpp
 
 
LSTMCRFMMLabeler.h
LSTMCRFMMLabeler.h
 
 
LSTMLabeler.cpp
LSTMLabeler.cpp
 
 
LSTMLabeler.h
LSTMLabeler.h
 
 
Options.h
Options.h
 
 
README.md
README.md
 
 
RNNCRFMLLabeler.cpp
RNNCRFMLLabeler.cpp
 
 
RNNCRFMLLabeler.h
RNNCRFMLLabeler.h
 
 
RNNCRFMMLabeler.cpp
RNNCRFMMLabeler.cpp
 
 
RNNCRFMMLabeler.h
RNNCRFMMLabeler.h
 
 
RNNLabeler.cpp
RNNLabeler.cpp
 
 
RNNLabeler.h
RNNLabeler.h
 
 
SparseCRFMLLabeler.cpp
SparseCRFMLLabeler.cpp
 
 
SparseCRFMLLabeler.h
SparseCRFMLLabeler.h
 
 
SparseCRFMMLabeler.cpp
SparseCRFMMLabeler.cpp
 
 
SparseCRFMMLabeler.h
SparseCRFMMLabeler.h
 
 
SparseGRNNCRFMLLabeler.cpp
SparseGRNNCRFMLLabeler.cpp
 
 
SparseGRNNCRFMLLabeler.h
SparseGRNNCRFMLLabeler.h
 
 
SparseGRNNCRFMMLabeler.cpp
SparseGRNNCRFMMLabeler.cpp
 
 
SparseGRNNCRFMMLabeler.h
SparseGRNNCRFMMLabeler.h
 
 
SparseGRNNLabeler.cpp
SparseGRNNLabeler.cpp
 
 
SparseGRNNLabeler.h
SparseGRNNLabeler.h
 
 
SparseGatedCRFMLLabeler.cpp
SparseGatedCRFMLLabeler.cpp
 
 
SparseGatedCRFMLLabeler.h
SparseGatedCRFMLLabeler.h
 
 
SparseGatedCRFMMLabeler.cpp
SparseGatedCRFMMLabeler.cpp
 
 
SparseGatedCRFMMLabeler.h
SparseGatedCRFMMLabeler.h
 
 
SparseGatedLabeler.cpp
SparseGatedLabeler.cpp
 
 
SparseGatedLabeler.h
SparseGatedLabeler.h
 
 
SparseLSTMCRFMLLabeler.cpp
SparseLSTMCRFMLLabeler.cpp
 
 
SparseLSTMCRFMLLabeler.h
SparseLSTMCRFMLLabeler.h
 
 
SparseLSTMCRFMMLabeler.cpp
SparseLSTMCRFMMLabeler.cpp
 
 
SparseLSTMCRFMMLabeler.h
SparseLSTMCRFMMLabeler.h
 
 
SparseLSTMLabeler.cpp
SparseLSTMLabeler.cpp
 
 
SparseLSTMLabeler.h
SparseLSTMLabeler.h
 
 
SparseLabeler.cpp
SparseLabeler.cpp
 
 
SparseLabeler.h
SparseLabeler.h
 
 
SparseRNNCRFMLLabeler.cpp
SparseRNNCRFMLLabeler.cpp
 
 
SparseRNNCRFMLLabeler.h
SparseRNNCRFMLLabeler.h
 
 
SparseRNNCRFMMLabeler.cpp
SparseRNNCRFMMLabeler.cpp
 
 
SparseRNNCRFMMLabeler.h
SparseRNNCRFMMLabeler.h
 
 
SparseRNNLabeler.cpp
SparseRNNLabeler.cpp
 
 
SparseRNNLabeler.h
SparseRNNLabeler.h
 
 
SparseTNNCRFMLLabeler.cpp
SparseTNNCRFMLLabeler.cpp
 
 
SparseTNNCRFMLLabeler.h
SparseTNNCRFMLLabeler.h
 
 
SparseTNNCRFMMLabeler.cpp
SparseTNNCRFMMLabeler.cpp
 
 
SparseTNNCRFMMLabeler.h
SparseTNNCRFMMLabeler.h
 
 
SparseTNNLabeler.cpp
SparseTNNLabeler.cpp
 
 
SparseTNNLabeler.h
SparseTNNLabeler.h
 
 
TNNCRFMLLabeler.cpp
TNNCRFMLLabeler.cpp
 
 
TNNCRFMLLabeler.h
TNNCRFMLLabeler.h
 
 
TNNCRFMMLabeler.cpp
TNNCRFMMLabeler.cpp
 
 
TNNCRFMMLabeler.h
TNNCRFMMLabeler.h
 
 
TNNLabeler.cpp
TNNLabeler.cpp
 
 
TNNLabeler.h
TNNLabeler.h
 
 
cleanall.sh
cleanall.sh
 
 
gradcheck.sh
gradcheck.sh
 
 

Repository files navigation

NNSegmentation

NNSegmentation is a package for Word Segmentation using neural networks based on package LibN3L. It includes different combination of Neural network architectures (TNN, RNN, GatedNN, LSTM and GRNN) with Objective function(Softmax, CRF Max-Margin, CRF Maximum Likelihood). It also provides the capability of combination of Sparse feature along with above models. In addition, this package can easily support various user-defined neural network structures.

Performance

Please read Table 4 in LibN3L: A lightweight Package for Neural NLP.

Compile

  • Download LibN3L library and compile it.
  • Open CMakeLists.txt and change "../LibN3L/" into the directory of your LibN3L package.

cmake .
make

Example

This example shows how to train three Chinese word segmentation models for the pku corpus of the Sighan Bakeoff 2005 dataset.
These models are

  • SparseCRFMMLabeler which only considers the sparse features and works like a CRF model
  • LSTMCRFMMLabeler which only uses neural embeddings as input and employs CRF Maximum Likelihood as training objective.
  • SparseLSTMCRFMMLabeler which supports both neural embeddings and sparse features and also employs CRF Maximum Likelihood as training objective.

This example data contains

  • Sparse Features "train.feats", "dev.feats" and "test.feats". The training features and dev features are extracted only from a subset of the pku corpus.
  • Character Unigram Embedding "char.vec"
  • Character Bigram Embedding "bi.vec"
  • Character Trigram Embedding "tri.vec"
  • Parameter Setting File "sparse" for SparseCRFMMLabeler, "lstm" for LSTMCRFMMLabeler and "sparselstm" for SparseLSTMCRFMMLabeler.

For more details about the example, please read the example "readme.md".

About

Word segmentation using neural networks based on package https://github.com/SUTDNLP/LibN3L

Resources

Readme
Activity
Custom properties

Stars

23 stars

Watchers

6 watching

Forks

8 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.