Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/NeuralNLP-NeuralClassifier
/ types & classes
Types & classes
58 in github.com/Tencent/NeuralNLP-NeuralClassifier
⨍
Functions
190
◇
Types & classes
58
↓ 8 callers
Class
Embedding
model/embedding.py:62
↓ 5 callers
Class
Config
Config load from json file
config.py:18
↓ 5 callers
Class
RNN
One layer rnn.
model/rnn.py:30
↓ 3 callers
Class
MultiHeadAttention
Multi-Head Attention module
model/attention.py:47
↓ 2 callers
Class
DotProductAttention
Reference: Attention is all you need Input shape is: [batch, seq_len, dim_k] and [batch, seq_len, dim_k] [batch, seq_len,
model/layers.py:95
↓ 2 callers
Class
FocalLoss
Softmax focal loss references: Focal Loss for Dense Object Detection https://github.com/Hsuxu/FocalLoss-PyTorch
model/loss.py:49
↓ 2 callers
Class
Logger
util.py:44
↓ 2 callers
Class
RegionEmbeddingLayer
Reference: A New Method of Region Embedding for Text Classification
model/embedding.py:141
↓ 1 callers
Class
AdditiveAttention2D
Input shape is: [batch, seq_len, dim] and [batch, seq_len, dim] Output is same with the first input
model/layers.py:78
↓ 1 callers
Class
BertAdam
Implements BERT version of Adam algorithm with weight decay fix. Params: lr: learning rate warmup: portion of t_total for the warm
model/optimizer.py:63
↓ 1 callers
Class
EncoderLayer
Compose with two layers
model/transformer_encoder.py:49
↓ 1 callers
Class
Highway
Reference: Highway Networks. For now we don't limit the type of the gate and forward. Caller should init Highway with transformer and car
model/layers.py:150
↓ 1 callers
Class
PositionEmbedding
Reference: attention is all you need
model/embedding.py:213
↓ 1 callers
Class
PositionwiseFeedForward
A two-feed-forward-layer module
model/transformer_encoder.py:29
↓ 1 callers
Class
Predictor
predict.py:44
↓ 1 callers
Class
ScaledDotProductAttention
Scaled Dot-Product Attention
model/attention.py:23
↓ 1 callers
Class
StarEncoderLayer
Star-Transformer: https://arxiv.org/pdf/1902.09113v2.pdf
model/transformer_encoder.py:69
↓ 1 callers
Class
SumAttention
Reference: Hierarchical Attention Networks for Document Classification
model/layers.py:22
Class
ActivationType
Standard names for activation type
model/loss.py:37
Class
ActivationType
Standard names for activation
model/model_util.py:21
Class
AdditiveAttention
Also known as Soft Attention or Bahdanau Attention Reference: Neural machine translation by jointly learning to align and translate
model/layers.py:45
Class
AdditiveAttention1D
Input shape is: [batch, dim] and [batch, seq_len, dim] Output is same with the first input
model/layers.py:63
Class
AttentionType
model/classification/attentive_convolution.py:34
Class
AttentiveConvNet
Attentive Convolution: Equipping CNNs with RNN-style Attention Mechanisms
model/classification/attentive_convolution.py:44
Class
AttentiveConvNetType
model/classification/attentive_convolution.py:25
Class
ClassificationCollator
dataset/collator.py:40
Class
ClassificationDataset
dataset/classification_dataset.py:21
Class
ClassificationEvaluator
evaluate/classification_evaluate.py:27
Class
ClassificationLoss
model/loss.py:100
Class
ClassificationTrainer
train.py:87
Class
ClassificationType
dataset/collator.py:31
Class
Classifier
model/classification/classifier.py:25
Class
Collator
dataset/collator.py:23
Class
DPCNN
Reference: Deep Pyramid Convolutional Neural Networks for Text Categorization
model/classification/dpcnn.py:22
Class
DRNN
model/classification/drnn.py:24
Class
DatasetBase
Base dataset class
dataset/dataset.py:45
Class
DocEmbeddingType
Standard names for doc embedding type.
model/classification/textrnn.py:24
Class
EmbeddingProcessType
Standard names for embedding mode Given the vocab tensor shape[batch_size, sequence_len]. The following keys are defined: * `FLAT`: Normal
model/embedding.py:42
Class
EmbeddingType
Standard names for embedding type The following keys are defined: * `EMBEDDING`: Return the embedding after lookup. * `REGION_EMBEDDING`:
model/embedding.py:27
Class
FAN_MODE
Standard names for fan mode
model/model_util.py:53
Class
FastText
Implement fasttext classification method Reference: "Bag of Tricks for Efficient Text Classification"
model/classification/fasttext.py:23
Class
FastTextCollator
FastText Collator Extra support features: token, token-ngrams, keywords, topics.
dataset/collator.py:169
Class
HMCN
Implement HMCN(Hierarchical Multi-Label Classification Networks) Reference: "Hierarchical Multi-Label Classification Networks"
model/classification/hmcn.py:23
Class
InitType
Standard names for init
model/model_util.py:36
Class
InsertVocabMode
Standard names for embedding mode Given the vocab tensor shape[batch_size, sequence_len]. The following keys are defined: * `FLAT`: Normal
dataset/dataset.py:25
Class
LossType
Standard names for loss type
model/loss.py:21
Class
ModeType
Standard names for model modes. The following standard keys are defined: * `TRAIN`: training mode. * `EVAL`: evaluation mode. * `PREDI
util.py:28
Class
MultiHeadAttention
Reference: Attention is all you need
model/layers.py:116
Class
OptimizerType
Standard names for optimizer
model/model_util.py:112
Class
RNNType
model/rnn.py:20
Class
RegionEmbedding
Implement region embedding classification method Reference: "A New Method of Region Embedding for Text Classification"
model/classification/region_embedding.py:23
Class
RegionEmbeddingType
Standard names for region embedding type
model/embedding.py:130
Class
TextCNN
model/classification/textcnn.py:21
Class
TextRCNN
TextRNN + TextCNN
model/classification/textrcnn.py:23
Class
TextRNN
Implement TextRNN, contains LSTM,BiLSTM,GRU,BiGRU Reference: "Effective LSTMs for Target-Dependent Sentiment Classification" "Bidir
model/classification/textrnn.py:37
Class
TextVDCNN
model/classification/textvdcnn.py:26
Class
Transformer
model/classification/transformer.py:24
Class
Type
util.py:22