radlab / semantic-euro-bert-encoder-v1

huggingface.co
Total runs: 21
24-hour runs: 2
7-day runs: 3
30-day runs: -41
Model's Last Updated: September 11 2025
sentence-similarity

Introduction of semantic-euro-bert-encoder-v1

Model Details of semantic-euro-bert-encoder-v1

PLWordNet Semantic Embedder (bi-encoder)

A Polish semantic embedder trained on pairs constructed from plWordNet (Słowosieć) semantic relations and external descriptions of meanings. Every relation between lexical units and synsets is transformed into training/evaluation examples.

The dataset mixes meanings’ usage signals: emotions, definitions, and external descriptions (Wikipedia, sentence-split). The embedder mimics semantic relations: it pulls together embeddings that are linked by “positive” relations (e.g., synonymy, hypernymy/hyponymy as defined in the dataset) and pushes apart embeddings linked by “negative” relations (e.g., antonymy or mutually exclusive relations). Source code and training scripts:

Model summary
  • Architecture : bi-encoder built with sentence-transformers (transformer encoder + pooling).
  • Use cases : semantic similarity and semantic search for Polish words, senses, definitions, and sentences.
  • Objective : CosineSimilarityLoss on positive/negative pairs.
  • Behavior : preserves the topology of semantic relations derived from plWordNet.
Training data

Constructed from plWordNet relations between lexical units and synsets; each relation yields example pairs. Augmented with:

  • definitions,
  • usage examples (including emotion annotations where available),
  • external descriptions from Wikipedia (split into sentences).

Positive pairs correspond to relations expected to increase similarity; negative pairs correspond to relations expected to decrease similarity. Additional hard/soft negatives may include unrelated meanings.

Training details
  • Trainer : SentenceTransformerTrainer
  • Loss : CosineSimilarityLoss
  • Evaluator : EmbeddingSimilarityEvaluator (cosine)
  • Typical hyperparameters :
    • epochs: 5
    • per-device batch size: 10 (gradient accumulation: 4)
    • learning rate: 5e-6 (AdamW fused)
    • weight decay: 0.01
    • warmup: ratio 20k steps
    • fp16: true
Evaluation
  • Task : semantic similarity on dev/test splits built from the relation-derived pairs.
  • Metric : cosine-based correlation (Spearman/Pearson) where applicable, or discrimination between positive vs. negative pairs.

image/png

image/png

image/png

How to use

Sentence-Transformers:

# Python
from sentence_transformers import SentenceTransformer, util

model = SentenceTransformer("radlab/semantic-euro-bert-encoder-v1", trust_remote_code=True)

texts = ["zamek", "drzwi", "wiadro", "horyzont", "ocean"]
emb = model.encode(texts, convert_to_tensor=True, normalize_embeddings=True)
scores = util.cos_sim(emb, emb)
print(scores)  # higher = more semantically similar

Transformers (feature extraction):

# Python
from transformers import AutoModel, AutoTokenizer
import torch
import torch.nn.functional as F

name = "radlab/semantic-euro-bert-encoder-v1"
tok = AutoTokenizer.from_pretrained(name)
mdl = AutoModel.from_pretrained(name, trust_remote_code=True)

texts = ["student", "żak"]
tokens = tok(texts, padding=True, truncation=True, return_tensors="pt")
with torch.no_grad():
    out = mdl(**tokens)
    emb = out.last_hidden_state.mean(dim=1)
    emb = F.normalize(emb, p=2, dim=1)

sim = emb @ emb.T
print(sim)

Runs of radlab semantic-euro-bert-encoder-v1 on huggingface.co

21
Total runs
2
24-hour runs
1
3-day runs
3
7-day runs
-41
30-day runs

More Information About semantic-euro-bert-encoder-v1 huggingface.co Model

More semantic-euro-bert-encoder-v1 license Visit here:

https://choosealicense.com/licenses/apache-2.0

semantic-euro-bert-encoder-v1 huggingface.co

semantic-euro-bert-encoder-v1 huggingface.co is an AI model on huggingface.co that provides semantic-euro-bert-encoder-v1's model effect (), which can be used instantly with this radlab semantic-euro-bert-encoder-v1 model. huggingface.co supports a free trial of the semantic-euro-bert-encoder-v1 model, and also provides paid use of the semantic-euro-bert-encoder-v1. Support call semantic-euro-bert-encoder-v1 model through api, including Node.js, Python, http.

semantic-euro-bert-encoder-v1 huggingface.co Url

https://huggingface.co/radlab/semantic-euro-bert-encoder-v1

radlab semantic-euro-bert-encoder-v1 online free

semantic-euro-bert-encoder-v1 huggingface.co is an online trial and call api platform, which integrates semantic-euro-bert-encoder-v1's modeling effects, including api services, and provides a free online trial of semantic-euro-bert-encoder-v1, you can try semantic-euro-bert-encoder-v1 online for free by clicking the link below.

radlab semantic-euro-bert-encoder-v1 online free url in huggingface.co:

https://huggingface.co/radlab/semantic-euro-bert-encoder-v1

semantic-euro-bert-encoder-v1 install

semantic-euro-bert-encoder-v1 is an open source model from GitHub that offers a free installation service, and any user can find semantic-euro-bert-encoder-v1 on GitHub to install. At the same time, huggingface.co provides the effect of semantic-euro-bert-encoder-v1 install, users can directly use semantic-euro-bert-encoder-v1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

semantic-euro-bert-encoder-v1 install url in huggingface.co:

https://huggingface.co/radlab/semantic-euro-bert-encoder-v1

Url of semantic-euro-bert-encoder-v1

semantic-euro-bert-encoder-v1 huggingface.co Url

Provider of semantic-euro-bert-encoder-v1 huggingface.co

radlab
ORGANIZATIONS

Other API from radlab

huggingface.co

Total runs: 10
Run Growth: 7
Growth Rate: 70.00%
Updated:October 20 2024
huggingface.co

Total runs: 5
Run Growth: 2
Growth Rate: 40.00%
Updated:October 20 2024
huggingface.co

Total runs: 3
Run Growth: 1
Growth Rate: 33.33%
Updated:October 04 2025
huggingface.co

Total runs: 2
Run Growth: -1
Growth Rate: -50.00%
Updated:August 31 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 01 2025