Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/huggingface/sentence-transformers
/ functions
Functions
404 in github.com/huggingface/sentence-transformers
⨍
Functions
404
◇
Types & classes
85
Method
get_examples
(self, filename, max_examples=0)
sentence_transformers/readers/LabelSentenceReader.py:17
Method
get_examples
filename specified which data split to use (train.csv, dev.csv, test.csv).
sentence_transformers/readers/STSDataReader.py:24
Method
get_examples
data_splits specified which data split to use (train, dev, test). Expects that self.dataset_folder contains the files s1.$data_split.
sentence_transformers/readers/NLIDataReader.py:14
Function
get_html_theme_path
Return list of HTML theme paths.
docs/_themes/sphinx_rtd_theme/__init__.py:16
Method
get_max_seq_length
Returns the maximal sequence length for input the model accepts. Longer inputs will be truncated
sentence_transformers/SentenceTransformer.py:305
Method
get_num_labels
(self)
sentence_transformers/readers/NLIDataReader.py:43
Method
get_sentence_embedding_dimension
(self)
sentence_transformers/models/LayerNorm.py:21
Method
get_sentence_embedding_dimension
(self)
sentence_transformers/models/Dense.py:41
Method
get_sentence_embedding_dimension
(self)
sentence_transformers/models/Asym.py:59
Method
get_sentence_embedding_dimension
(self)
sentence_transformers/models/Pooling.py:105
Method
get_sentence_features
(self, *features)
sentence_transformers/SentenceTransformer.py:320
Method
get_vocab
(self)
sentence_transformers/models/tokenizer/WhitespaceTokenizer.py:18
Method
get_vocab
(self)
sentence_transformers/models/tokenizer/PhraseTokenizer.py:26
Method
get_word_embedding_dimension
(self)
sentence_transformers/models/WordEmbeddings.py:60
Method
get_word_embedding_dimension
(self)
sentence_transformers/models/WeightedLayerPooling.py:33
Method
get_word_embedding_dimension
(self)
sentence_transformers/models/LSTM.py:38
Function
graph_nodes_clusters
(transition_matrix, increase_power=True)
examples/applications/text-summarization/LexRank.py:92
Function
information_retrieval
This function is deprecated. Use semantic_search instead
sentence_transformers/util.py:191
Function
install_logger
Configures the given logger; format, logging level, style, etc
sentence_transformers/LoggingHandler.py:19
Method
load
(input_path: str)
sentence_transformers/models/Transformer.py:128
Method
load
(input_path: str)
sentence_transformers/models/WordEmbeddings.py:74
Method
load
(input_path)
sentence_transformers/models/LayerNorm.py:31
Method
load
(input_path)
sentence_transformers/models/Dense.py:57
Method
load
(input_path)
sentence_transformers/models/Dropout.py:30
Method
load
(input_path)
sentence_transformers/models/WordWeights.py:73
Method
load
(input_path: str)
sentence_transformers/models/CLIPModel.py:81
Method
load
(input_path: str)
sentence_transformers/models/CNN.py:65
Method
load
(input_path)
sentence_transformers/models/Asym.py:105
Method
load
(input_path)
sentence_transformers/models/Normalize.py:21
Method
load
(input_path)
sentence_transformers/models/WeightedLayerPooling.py:47
Method
load
(input_path)
sentence_transformers/models/Pooling.py:116
Method
load
(input_path: str)
sentence_transformers/models/LSTM.py:54
Method
load
(input_path: str)
sentence_transformers/models/tokenizer/WhitespaceTokenizer.py:60
Method
load
(input_path: str)
sentence_transformers/models/tokenizer/PhraseTokenizer.py:93
Method
load
(input_path: str)
sentence_transformers/models/tokenizer/WordTokenizer.py:26
Method
max_seq_length
Property to get the maximal input sequence length for the model. Longer inputs will be truncated.
sentence_transformers/SentenceTransformer.py:890
Function
notice
(self, message, *args, **kws)
sentence_transformers/LoggingHandler.py:32
Function
onLoad
()
docs/_static/js/custom.js:27
Method
on_rm_error
(func, path, exc_info)
sentence_transformers/SentenceTransformer.py:496
Function
pairwise_cos_sim
Computes the pairwise cossim cos_sim(a[i], b[i]) :return: Vector with res[i] = cos_sim(a[i], b[i])
sentence_transformers/util.py:79
Method
resolve_any_xref
(self, env, fromdocname, builder, target, node, contnode)
docs/conf.py:99
Method
save
(self, output_path: str)
sentence_transformers/models/Transformer.py:120
Method
save
(self, output_path: str)
sentence_transformers/models/WordEmbeddings.py:63
Method
save
(self, output_path)
sentence_transformers/models/LayerNorm.py:24
Method
save
(self, output_path)
sentence_transformers/models/Dense.py:47
Method
save
(self, output_path)
sentence_transformers/models/Dropout.py:23
Method
save
(self, output_path)
sentence_transformers/models/WordWeights.py:68
Method
save
(self, output_path: str)
sentence_transformers/models/CLIPModel.py:76
Method
save
(self, output_path: str)
sentence_transformers/models/CNN.py:55
Method
save
(self, output_path)
sentence_transformers/models/Asym.py:62
Method
save
(self, output_path)
sentence_transformers/models/Normalize.py:17
Method
save
(self, output_path)
sentence_transformers/models/WeightedLayerPooling.py:39
Method
save
(self, output_path)
sentence_transformers/models/Pooling.py:111
Method
save
(self, output_path: str)
sentence_transformers/models/LSTM.py:44
Method
save
(self, output_path: str)
sentence_transformers/models/tokenizer/WhitespaceTokenizer.py:55
Method
save
(self, output_path: str)
sentence_transformers/models/tokenizer/PhraseTokenizer.py:88
Method
save
(self, output_path: str)
sentence_transformers/models/tokenizer/WordTokenizer.py:21
Method
save_to_hub
Uploads all elements of this Sentence Transformer to a new HuggingFace Hub repository. :param repo_name: Repository name for your mo
sentence_transformers/SentenceTransformer.py:424
Method
setUp
(self)
tests/test_multi_process.py:11
Method
setUp
(self)
tests/test_compute_embeddings.py:11
Method
setUp
(self)
tests/test_train_stsb.py:17
Method
setUp
(self)
tests/test_cross_encoder.py:18
Method
setUp
(self)
tests/test_image_embeddings.py:12
Function
setup
(app)
docs/_themes/sphinx_rtd_theme/__init__.py:23
Method
smart_batching_collate
Transforms a batch from a SmartBatchingDataset to a batch of tensors for the model Here, batch is a list of tuples: [(tokens, label),
sentence_transformers/SentenceTransformer.py:517
Method
smart_batching_collate
(self, batch)
sentence_transformers/cross_encoder/CrossEncoder.py:71
Method
smart_batching_collate_text_only
(self, batch)
sentence_transformers/cross_encoder/CrossEncoder.py:89
Method
test_BinaryClassificationEvaluator_find_best_accuracy_and_threshold
Tests that the Acc score for the computed threshold is correct
tests/test_evaluator.py:27
Method
test_BinaryClassificationEvaluator_find_best_f1_and_threshold
Tests that the F1 score for the computed threshold is correct
tests/test_evaluator.py:17
Method
test_LabelAccuracyEvaluator
Tests that the LabelAccuracyEvaluator can be loaded correctly
tests/test_evaluator.py:36
Method
test_ParaphraseMiningEvaluator
Tests that the ParaphraseMiningEvaluator can be loaded
tests/test_evaluator.py:62
Method
test_bert_base
(self)
tests/test_pretrained_stsb.py:42
Method
test_bert_large
(self)
tests/test_pretrained_stsb.py:49
Method
test_distilbert
(self)
tests/test_pretrained_stsb.py:61
Method
test_encode_normalize
(self)
tests/test_compute_embeddings.py:43
Method
test_encode_single_sentences
(self)
tests/test_compute_embeddings.py:27
Method
test_encode_token_embeddings
Test that encode(output_value='token_embeddings') works :return:
tests/test_compute_embeddings.py:15
Method
test_encode_tuple_sentences
(self)
tests/test_compute_embeddings.py:49
Method
test_mpnet
(self)
tests/test_pretrained_stsb.py:71
Method
test_msmarco
(self)
tests/test_pretrained_stsb.py:77
Method
test_multi_gpu_encode
(self)
tests/test_multi_process.py:14
Method
test_multiling
(self)
tests/test_pretrained_stsb.py:66
Method
test_normalize_embeddings
Tests the correct computation of util.normalize_embeddings
tests/test_util.py:9
Method
test_other_models
(self)
tests/test_pretrained_stsb.py:74
Method
test_pairwise_scores
(self)
tests/test_util.py:69
Method
test_paraphrase_mining
(self)
tests/test_util.py:55
Method
test_pretrained_stsb
(self)
tests/test_cross_encoder.py:46
Method
test_pytorch_cos_sim
Tests the correct computation of util.pytorch_cos_scores
tests/test_util.py:21
Method
test_roberta
(self)
tests/test_pretrained_stsb.py:55
Method
test_semantic_search
Tests util.semantic_search function
tests/test_util.py:33
Method
test_sentence_t5
(self)
tests/test_pretrained_stsb.py:81
Method
test_simple_encode
(self)
tests/test_image_embeddings.py:15
Method
test_train_nli
(self)
tests/test_train_stsb.py:78
Method
test_train_stsb
(self)
tests/test_train_stsb.py:62
Method
test_train_stsb
(self)
tests/test_cross_encoder.py:50
Method
tokenize
Tokenizes a text and maps tokens to token-ids
sentence_transformers/models/Transformer.py:84
Method
tokenize
(self, texts: List[str])
sentence_transformers/models/WordEmbeddings.py:40
Method
tokenize
(self, texts)
sentence_transformers/models/CLIPModel.py:53
Method
tokenize
(self, text: str)
sentence_transformers/models/CNN.py:52
Method
tokenize
Tokenizes a text and maps tokens to token-ids
sentence_transformers/models/Asym.py:85
← previous
next →
301–400 of 404, ranked by callers