Feature Extraction
sentence-transformers
PyTorch
Safetensors
Transformers
English
bert
Phrase Representation
String Matching
Fuzzy Join
Entity Retrieval
text-embeddings-inference
Instructions to use Lihuchen/pearl_small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Lihuchen/pearl_small with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Lihuchen/pearl_small") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use Lihuchen/pearl_small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Lihuchen/pearl_small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Lihuchen/pearl_small") model = AutoModel.from_pretrained("Lihuchen/pearl_small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,11 @@ tags:
|
|
| 14 |
<br> Accepted by EACL Findings 2024
|
| 15 |
|
| 16 |
PEARL-small is finetuned on [E5-small](https://huggingface.co/intfloat/e5-small-v2),
|
| 17 |
-
which can yield better representations for
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
| Model |Size|Avg| PPDB | PPDB filtered |Turney|BIRD|YAGO|UMLS|CoNLL|BC5CDR|AutoFJ|
|
| 20 |
|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
|
|
|
|
| 14 |
<br> Accepted by EACL Findings 2024
|
| 15 |
|
| 16 |
PEARL-small is finetuned on [E5-small](https://huggingface.co/intfloat/e5-small-v2),
|
| 17 |
+
which can yield better representations for phrases and strings. <br>
|
| 18 |
+
If you are computing the semantic similarity of strings, you may need our PEARL model.<br>
|
| 19 |
+
It can produce powerful embeddings for various tasks,
|
| 20 |
+
such as string matching, entity retrieval, entity clustering and fuzzy join.
|
| 21 |
+
|
| 22 |
|
| 23 |
| Model |Size|Avg| PPDB | PPDB filtered |Turney|BIRD|YAGO|UMLS|CoNLL|BC5CDR|AutoFJ|
|
| 24 |
|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
|