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
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_CharCNN/utils.py:105
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_CharCNN/without_torchtext/utils.py:80
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_Transformer/utils.py:100
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_Seq2Seq_Attention/utils.py:105
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_TextRNN/utils.py:104
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_TextCNN/utils.py:104
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_fastText/utils.py:104
↓ 4 callers
Function
evaluate_model
(model, iterator)
Model_RCNN/utils.py:104
↓ 3 callers
Function
clones
Produce N identical layers.
Model_Transformer/train_utils.py:9
↓ 3 callers
Function
data_iterator
Generate batches of training data for training (for single epoch) Inputs: train_df (pd.DataFrame) : complete training data ba
Model_TextCNN/old_code/utils.py:141
↓ 3 callers
Function
data_iterator
Generate batches of training data for training (for single epoch) Inputs: train_df (pd.DataFrame) : complete training data ba
Model_fastText/old_code/utils.py:144
↓ 3 callers
Function
encode_text
Encode a sequence of words into corresponding vector representation Input: text (string) : text (space separated words, etc..)
Model_TextCNN/old_code/utils.py:124
↓ 3 callers
Function
encode_text
Encode a sequence of words into corresponding vector representation Input: text (string) : text (space separated words, etc..)
Model_fastText/old_code/utils.py:124
↓ 3 callers
Function
get_accuracy
(model, test_x, test_y)
Model_TextCNN/old_code/train.py:15
↓ 3 callers
Function
get_accuracy
(model, test_x, test_y)
Model_fastText/old_code/train.py:15
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_CharCNN/utils.py:32
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_Transformer/utils.py:29
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_Seq2Seq_Attention/utils.py:30
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_TextRNN/utils.py:30
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_TextCNN/utils.py:30
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_fastText/utils.py:30
↓ 3 callers
Method
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_RCNN/utils.py:30
↓ 2 callers
Method
add_word
Add a word to the vocabulary Inputs: word (string) : Word to be added to vocabulary
Model_TextCNN/old_code/utils.py:16
↓ 2 callers
Method
add_word
Add a word to the vocabulary Inputs: word (string) : Word to be added to vocabulary
Model_fastText/old_code/utils.py:16
↓ 2 callers
Function
get_data
Loads the data from file Inputs: filename (String): absolute path to the datafile Returns: X (list[string]): list of contents
Model_TextCNN/old_code/utils.py:64
↓ 2 callers
Function
get_data
Loads the data from file Inputs: filename (String): absolute path to the datafile Returns: X (list[string]): list of contents
Model_fastText/old_code/utils.py:64
↓ 1 callers
Method
__init__
(self, features, eps=1e-6)
Model_Transformer/sublayer.py:8
↓ 1 callers
Method
__init__
(self, layer, N)
Model_Transformer/encoder.py:13
↓ 1 callers
Method
__init__
(self, d_model, vocab)
Model_Transformer/train_utils.py:17
↓ 1 callers
Method
_create_weights
(self, mean=0.0, std=0.05)
Model_CharCNN/without_torchtext/model.py:68
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_CharCNN/model.py:79
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_CharCNN/without_torchtext/model.py:83
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_Transformer/model.py:49
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_Seq2Seq_Attention/model.py:85
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_TextRNN/model.py:50
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_TextCNN/model.py:60
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_TextCNN/old_code/model.py:69
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_fastText/model.py:35
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_fastText/old_code/model.py:32
↓ 1 callers
Method
add_loss_op
(self, loss_op)
Model_RCNN/model.py:73
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_CharCNN/model.py:76
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_CharCNN/without_torchtext/model.py:80
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_Transformer/model.py:46
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_Seq2Seq_Attention/model.py:82
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_TextRNN/model.py:47
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_TextCNN/model.py:57
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_TextCNN/old_code/model.py:66
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_fastText/model.py:32
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_fastText/old_code/model.py:29
↓ 1 callers
Method
add_optimizer
(self, optimizer)
Model_RCNN/model.py:70
↓ 1 callers
Method
apply_attention
Apply Attention on RNN output Input: rnn_output (batch_size, seq_len, num_directions * hidden_size): tensor repr
Model_Seq2Seq_Attention/model.py:36
↓ 1 callers
Function
attention
Implementation of Scaled dot product attention
Model_Transformer/attention.py:9
↓ 1 callers
Method
construct
Construct the vocabulary Inputs: words (list[string]) : List of words defining the vocabulary
Model_TextCNN/old_code/utils.py:27
↓ 1 callers
Method
construct
Construct the vocabulary Inputs: words (list[string]) : List of words defining the vocabulary
Model_fastText/old_code/utils.py:27
↓ 1 callers
Function
get_embedding_matrix
(vocab_chars)
Model_CharCNN/utils.py:9
↓ 1 callers
Function
get_iterators
(config, train_file, test_file, val_file=None)
Model_CharCNN/without_torchtext/utils.py:63
↓ 1 callers
Function
get_pandas_df
Load the data into Pandas.DataFrame object This will be used to convert data to torchtext object
Model_CharCNN/without_torchtext/utils.py:50
↓ 1 callers
Function
get_word_embeddings
For each word in our vocabulary, get the word2vec encoding of the word Inputs: w2vfile (string) : Path to the file containing (pre-tr
Model_TextCNN/old_code/utils.py:84
↓ 1 callers
Function
get_word_embeddings
For each word in our vocabulary, get the word2vec encoding of the word Inputs: w2vfile (string) : Path to the file containing (pre-tr
Model_fastText/old_code/utils.py:84
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_CharCNN/utils.py:45
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_Transformer/utils.py:42
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_Seq2Seq_Attention/utils.py:43
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_TextRNN/utils.py:43
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_TextCNN/utils.py:43
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_fastText/utils.py:43
↓ 1 callers
Method
load_data
Loads the data from files Sets up iterators for training, validation and test data Also create vocabulary and word embeddings
Model_RCNN/utils.py:43
↓ 1 callers
Function
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_CharCNN/without_torchtext/utils.py:40
↓ 1 callers
Function
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_TextCNN/old_code/utils.py:54
↓ 1 callers
Function
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns: label (int) : in
Model_fastText/old_code/utils.py:54
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_CharCNN/utils.py:22
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_Transformer/utils.py:19
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_Seq2Seq_Attention/utils.py:20
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_TextRNN/utils.py:20
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_TextCNN/utils.py:20
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_fastText/utils.py:20
↓ 1 callers
Method
parse_label
Get the actual labels from label string Input: label (string) : labels of the form '__label__2' Returns:
Model_RCNN/utils.py:20
↓ 1 callers
Method
reduce_lr
(self)
Model_CharCNN/model.py:82
↓ 1 callers
Method
reduce_lr
(self)
Model_CharCNN/without_torchtext/model.py:86
↓ 1 callers
Method
reduce_lr
(self)
Model_Transformer/model.py:52
↓ 1 callers
Method
reduce_lr
(self)
Model_Seq2Seq_Attention/model.py:88
↓ 1 callers
Method
reduce_lr
(self)
Model_TextRNN/model.py:53
↓ 1 callers
Method
reduce_lr
(self)
Model_TextCNN/model.py:63
↓ 1 callers
Method
reduce_lr
(self)
Model_fastText/model.py:38
↓ 1 callers
Method
reduce_lr
(self)
Model_RCNN/model.py:76
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_CharCNN/model.py:87
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_CharCNN/without_torchtext/model.py:91
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_Transformer/model.py:57
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_Seq2Seq_Attention/model.py:93
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_TextRNN/model.py:58
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_TextCNN/model.py:68
↓ 1 callers
Method
run_epoch
(self, train_data, val_data)
Model_TextCNN/old_code/model.py:72
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_fastText/model.py:43
↓ 1 callers
Method
run_epoch
(self, train_data, val_data)
Model_fastText/old_code/model.py:35
↓ 1 callers
Method
run_epoch
(self, train_iterator, val_iterator, epoch)
Model_RCNN/model.py:81
Method
__getitem__
(self, index)
Model_CharCNN/without_torchtext/utils.py:26
Method
__init__
(self, config)
Model_CharCNN/utils.py:16
Method
__init__
(self, config, vocab_size, embeddings)
Model_CharCNN/model.py:9
Method
__init__
(self, data_path, config)
Model_CharCNN/without_torchtext/utils.py:14
Method
__init__
(self, config)
Model_CharCNN/without_torchtext/model.py:10
Method
__init__
(self, config)
Model_Transformer/utils.py:11
next →
1–100 of 145, ranked by callers