Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AnubhavGupta3377/Text-Classification-Models-Pytorch
/ functions
Functions
145 in github.com/AnubhavGupta3377/Text-Classification-Models-Pytorch
⨍
Functions
145
◇
Types & classes
38
Method
__init__
(self, size, dropout)
Model_Transformer/sublayer.py:23
Method
__init__
Take in model size and number of heads.
Model_Transformer/attention.py:21
Method
__init__
(self, size, self_attn, feed_forward, dropout)
Model_Transformer/encoder.py:30
Method
__init__
(self, d_model, d_ff, dropout=0.1)
Model_Transformer/feed_forward.py:8
Method
__init__
(self, d_model, dropout, max_len=5000)
Model_Transformer/train_utils.py:27
Method
__init__
(self, config, src_vocab)
Model_Transformer/model.py:14
Method
__init__
(self, config)
Model_Seq2Seq_Attention/utils.py:12
Method
__init__
(self, config, vocab_size, word_embeddings)
Model_Seq2Seq_Attention/model.py:10
Method
__init__
(self, config)
Model_TextRNN/utils.py:12
Method
__init__
(self, config, vocab_size, word_embeddings)
Model_TextRNN/model.py:9
Method
__init__
(self, config)
Model_TextCNN/utils.py:12
Method
__init__
(self, config, vocab_size, word_embeddings)
Model_TextCNN/model.py:9
Method
__init__
(self)
Model_TextCNN/old_code/utils.py:10
Method
__init__
(self, config)
Model_TextCNN/old_code/model.py:11
Method
__init__
(self, config)
Model_fastText/utils.py:12
Method
__init__
(self, config, vocab_size, word_embeddings)
Model_fastText/model.py:9
Method
__init__
(self)
Model_fastText/old_code/utils.py:10
Method
__init__
(self, config)
Model_fastText/old_code/model.py:11
Method
__init__
(self, config)
Model_RCNN/utils.py:12
Method
__init__
(self, config, vocab_size, word_embeddings)
Model_RCNN/model.py:10
Method
__len__
(self)
Model_CharCNN/without_torchtext/utils.py:23
Method
__len__
(self)
Model_TextCNN/old_code/utils.py:51
Method
__len__
(self)
Model_fastText/old_code/utils.py:51
Method
decode
Given a word index, get corresponding word from vocabulary.
Model_TextCNN/old_code/utils.py:45
Method
decode
Given a word index, get corresponding word from vocabulary.
Model_fastText/old_code/utils.py:45
Method
encode
Given a word, get corresponding index in vocabulary.
Model_TextCNN/old_code/utils.py:37
Method
encode
Given a word, get corresponding index in vocabulary.
Model_fastText/old_code/utils.py:37
Method
forward
(self, x)
Model_CharCNN/model.py:69
Method
forward
(self, embedded_sent)
Model_CharCNN/without_torchtext/model.py:73
Method
forward
(self, x)
Model_Transformer/sublayer.py:14
Method
forward
Apply residual connection to any sublayer with the same size.
Model_Transformer/sublayer.py:28
Method
forward
Implements Multi-head attention
Model_Transformer/attention.py:32
Method
forward
(self, x, mask=None)
Model_Transformer/encoder.py:18
Method
forward
Transformer Encoder
Model_Transformer/encoder.py:37
Method
forward
Implements FFN equation.
Model_Transformer/feed_forward.py:14
Method
forward
(self, x)
Model_Transformer/train_utils.py:22
Method
forward
(self, x)
Model_Transformer/train_utils.py:41
Method
forward
(self, x)
Model_Transformer/model.py:37
Method
forward
(self, x)
Model_Seq2Seq_Attention/model.py:53
Method
forward
(self, x)
Model_TextRNN/model.py:34
Method
forward
(self, x)
Model_TextCNN/model.py:43
Method
forward
(self, x)
Model_TextCNN/old_code/model.py:45
Method
forward
(self, x)
Model_fastText/model.py:26
Method
forward
(self, x)
Model_fastText/old_code/model.py:24
Method
forward
(self, x)
Model_RCNN/model.py:45
← previous
101–145 of 145, ranked by callers