Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShenDezhou/CAIL
/ functions
Functions
6,528 in github.com/ShenDezhou/CAIL
⨍
Functions
6,528
◇
Types & classes
1,183
↳
Endpoints
4
↓ 4 callers
Function
get_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/ydljztpus/utils.py:26
↓ 4 callers
Function
get_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/ydljztpu/utils.py:26
↓ 4 callers
Function
get_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/ydljz(hong)tpu/utils.py:26
↓ 4 callers
Function
get_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/sfzyzc/sfzyza/utils.py:28
↓ 4 callers
Function
get_csv_logger
Get csv logger. Args: log_file_name: file name title: first line in file log_format: default: '%(message)s' log_l
CAIL2020/sfzyza/utils.py:28
↓ 4 callers
Function
get_cv_image
将图像转换为numpy格式的数据 :param image: 图像 :return: ndarray格式的图像数据
CAIL2020/cocr/torchocr/utils/CreateRecAug.py:33
↓ 4 callers
Method
get_input_embeddings
(self)
CAIL2020/ydlj/baseline/transformers/modeling_xlm.py:414
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/covid/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/hyfl/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/htflx/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/jesb/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/htfl/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/ayfl-4/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/sfzyzc/sfzyzb/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/sfzyza/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/htfltpu/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/lbwjtpu/evaluate.py:33
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/rlfl/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/lbwj/evaluate.py:33
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/sfksx/evaluate.py:33
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/ayfl/evaluate.py:51
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/lbwjx/evaluate.py:33
↓ 4 callers
Function
get_labels_from_file
Get labels on the last column from file. Args: filename: file name Returns: List[str]: label list
CAIL2020/sfzyzb/evaluate.py:51
↓ 4 callers
Function
get_path
Create the path if it does not exist. Args: path: path to be used Returns: Existed path
CAIL2018/xsfl/utils.py:12
↓ 4 callers
Function
hf_bucket_url
(identifier, postfix=None)
CAIL2020/ydlj/baseline/transformers/file_utils.py:113
↓ 4 callers
Function
init_all
(config, gpu_list, checkpoint, mode, *args, **params)
CAIL2020/sfksz/tools/init_tool.py:12
↓ 4 callers
Method
isArgueReason
(self, sentence)
CAIL2020/sfzyy/rulereason/CheckReason.py:44
↓ 4 callers
Method
isArgueReason
(self, sentence)
CAIL2020/sfzy/rulereason/CheckReason.py:40
↓ 4 callers
Method
isArgueReason
(self, sentence)
CAIL2020/sfzyzc/sfzyy/rulereason/CheckReason.py:44
↓ 4 callers
Method
load_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/cocr/torchocr/networks/backbones/RecMobileNetV3.py:147
↓ 4 callers
Method
load_3rd_state_dict
(self, _3rd_name, _state)
CAIL2020/cocr/torchocr/networks/backbones/DetMobilenetV3.py:168
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2021/stxq/data.py:144
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2021/slsb/data.py:144
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/ydljz/data.py:225
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/sfksy/data.py:124
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/zwfc/data.py:143
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/jesbl/data.py:142
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/sfzyza/data.py:128
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/lbwjtpu/data.py:128
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/lbwj/data.py:128
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/sfksx/data.py:124
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/ayfl/data.py:125
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/lbwjx/data.py:128
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/ydljz(hong)/data.py:229
↓ 4 callers
Method
load_file
Load SMP-CAIL2020-Argmine train file and construct TensorDataset. Args: file_path: train file with last column as label
CAIL2020/sfzyzb/data.py:124
↓ 4 callers
Function
load_torch_model
Load state dict to model. Args: model: model to be loaded model_path: state dict file path Returns: loaded model
CAIL2018/xsfl/utils.py:53
↓ 4 callers
Function
load_torch_model
Load state dict to model. Args: model: model to be loaded model_path: state dict file path Returns: loaded model
CAIL2020/sfzyzc/sfzyza/utils.py:55
↓ 4 callers
Method
load_train_and_valid_files
Load all files for SMP-CAIL2020-Argmine. Args: train_file, valid_file: files for SMP-CAIL2020-Argmine Returns:
CAIL2018/xsfl/data.py:168
↓ 4 callers
Method
load_train_and_valid_files
Load all files for SMP-CAIL2020-Argmine. Args: train_file, valid_file: files for SMP-CAIL2020-Argmine Returns:
CAIL2020/sfzyzc/sfzyza/data.py:167
↓ 4 callers
Method
load_train_and_valid_files
Load all files for SMP-CAIL2020-Argmine. Args: train_file, valid_file: files for SMP-CAIL2020-Argmine Returns:
CAIL2020/sfzyza/data.py:167
↓ 4 callers
Method
login
Call HF API to sign in a user and get a token if credentials are valid. Outputs: token if credentials are valid
CAIL2020/ydlj/baseline/transformers/hf_api.py:59
↓ 4 callers
Method
moses_pipeline
(self, text, lang)
CAIL2020/ydlj/baseline/transformers/tokenization_xlm.py:596
↓ 4 callers
Function
multi_generate_ans
(id_list, ans_list)
CAIL2020/sfksz/model/qa/util.py:22
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljz/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljzs/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljztpus/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljzt/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydlj/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
CAIL2020/ydlj/baseline/transformers/data/metrics/squad_metrics.py:25
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljtpu/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljztpu/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljx/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljz(hong)tpu/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljy/evaluate/evaluate.py:8
↓ 4 callers
Function
normalize_answer
(s)
CAIL2020/ydljz(hong)/evaluate/evaluate.py:8
↓ 4 callers
Method
normalize_img
根据配置的均值和标准差进行归一化 :param _img: 待归一化的图像 :return: 归一化后的图像
CAIL2020/cocr/torchocr/datasets/RecDataSet.py:268
↓ 4 callers
Function
predict
(model, dataloader, example_dict, feature_dict, prediction_file, need_sp_logit_file=False)
CAIL2020/ydljzs/run_cail.py:56
↓ 4 callers
Method
predict
(self, content)
CAIL2018/svc/predictor/predictor.py:57
↓ 4 callers
Method
prepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_tf_albert_test.py:96
↓ 4 callers
Method
prepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_openai_test.py:85
↓ 4 callers
Method
prepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_tf_gpt2_test.py:94
↓ 4 callers
Method
prepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_tf_openai_gpt_test.py:93
↓ 4 callers
Method
prepare_config_and_inputs
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_gpt2_test.py:89
↓ 4 callers
Method
refresh
(self)
CAIL2020/ydljztpus/data_iterator_pack.py:25
↓ 4 callers
Method
refresh
(self)
CAIL2020/ydljztpu/data_iterator_pack.py:25
↓ 4 callers
Method
refresh
(self)
CAIL2020/ydljz(hong)tpu/data_iterator_pack.py:25
↓ 4 callers
Method
rel_attn_core
Core relative positional attention operations.
CAIL2020/ydlj/baseline/transformers/modeling_xlnet.py:254
↓ 4 callers
Method
rel_attn_core
Core relative positional attention operations.
CAIL2020/ydlj/baseline/transformers/modeling_tf_xlnet.py:127
↓ 4 callers
Method
resize_with_specific_height
将图像resize到指定高度 :param _img: 待resize的图像 :return: resize完成的图像
CAIL2020/cocr/torchocr/datasets/RecDataSet.py:259
↓ 4 callers
Method
set_seed
(self)
CAIL2020/ydlj/baseline/transformers/tests/modeling_tf_xlnet_test.py:143
↓ 4 callers
Function
show_img
(imgs: np.ndarray, title='img')
CAIL2020/cocr/torchocr/utils/vis.py:55
↓ 4 callers
Function
test
(parameters, config, gpu_list)
CAIL2020/sfkst/test_tool.py:13
↓ 4 callers
Method
tokenize
Cut words for a sentence. Args: sentence: sentence Returns: words list
CAIL2020/covid/data.py:73
↓ 4 callers
Method
train
Train model on train set and evaluate on train and valid set. Returns: state dict of the best model with highest valid f1 score
CAIL2020/lbwj/train.py:166
↓ 4 callers
Function
whitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
CAIL2020/ydlj/baseline/transformers/tokenization_bert.py:100
↓ 3 callers
Function
PythonROUGE
Wrapper function to use ROUGE from Python easily.
CAIL2020/sfzywg/rouge/script/PythonROUGE.py:22
↓ 3 callers
Function
PythonROUGE
Wrapper function to use ROUGE from Python easily.
CAIL2020/sfzyzc/rouge/script/PythonROUGE.py:22
↓ 3 callers
Method
__init__
Initialize the model with config dict. Args: config: python dict must contains the attributes below: config.bert_
CAIL2020/sfksy/model.py:15
↓ 3 callers
Method
__init__
(self, config)
CAIL2020/ydlj/baseline/transformers/modeling_ctrl.py:276
↓ 3 callers
Method
__init__
TFConv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights a
CAIL2020/ydlj/baseline/transformers/modeling_tf_utils.py:315
↓ 3 callers
Method
__init__
(self, config)
CAIL2020/sfks/model/qa/CoMatch.py:81
↓ 3 callers
Method
__init__
Initialize the model with config dict. Args: config: python dict must contains the attributes below: config.bert_
CAIL2020/sfksx/model.py:15
↓ 3 callers
Function
_config_zero_init
(config)
CAIL2020/ydlj/baseline/transformers/tests/modeling_common_test.py:58
↓ 3 callers
Method
_create_and_check_torchscript
(self, config, inputs_dict)
CAIL2020/ydlj/baseline/transformers/tests/modeling_common_test.py:181
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
CAIL2020/ydlj/baseline/transformers/data/processors/glue.py:381
↓ 3 callers
Method
_get_replica_gradients
(self)
CAIL2020/ydlj/baseline/transformers/optimization_tf.py:242
↓ 3 callers
Method
_logit
(x, W, b, proj=None)
CAIL2020/ydlj/baseline/transformers/modeling_tf_transfo_xl_utilities.py:100
↓ 3 callers
Method
_tie_or_clone_weights
Tie or clone module weights depending of weither we are using TorchScript or not
CAIL2020/ydlj/baseline/transformers/modeling_utils.py:123
↓ 3 callers
Method
_upsample_add
(self, x, y)
CAIL2020/lbwj/FPN.py:64
↓ 3 callers
Method
_upsample_add
(self, x, y)
CAIL2020/cocr/torchocr/networks/necks/FPN.py:64
← previous
next →
401–500 of 6,528, ranked by callers