cnmoro / LexicalEmbed-Base

huggingface.co
Total runs: 54
24-hour runs: 0
7-day runs: 17
30-day runs: 38
Model's Last Updated: December 21 2025
feature-extraction

Introduction of LexicalEmbed-Base

Model Details of LexicalEmbed-Base

This is a model trained on cnmoro/LexicalTriplets to produce lexical embeddings (not semantic!)

This can be used to compute lexical similarity between words or phrases.

Concept: "Some text" will be similar to "Sm txt"

"King" will not be similar to "Queen" or "Royalty"

"Dog" will not be similar to "Animal"

"Doge" will be similar to "Dog"

This will be trained for 2 epochs. The current model here is the first one.

import torch, re, unicodedata
from transformers import AutoModel, AutoTokenizer

model_name = "cnmoro/LexicalEmbed-Base"

tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModel.from_pretrained(model_name, trust_remote_code=True)
model.eval()

def preprocess(text):
    text = unicodedata.normalize('NFD', text)
    text = ''.join(c for c in text if unicodedata.category(c) != 'Mn')
    text = re.sub(r'[^\w\s]+', ' ', text.lower())
    return re.sub(r'\s+', ' ', text).strip()

texts = ["hello world", "hel wor"]
texts = [ preprocess(s) for s in texts ]
inputs = tokenizer(texts, padding=True, truncation=True, return_tensors="pt")

with torch.no_grad():
    embeddings = model(**inputs)

cosine_sim = torch.nn.functional.cosine_similarity(embeddings[0], embeddings[1], dim=0)
print(f"Cosine Similarity: {cosine_sim.item()}") # 0.8960

Runs of cnmoro LexicalEmbed-Base on huggingface.co

54
Total runs
0
24-hour runs
15
3-day runs
17
7-day runs
38
30-day runs

More Information About LexicalEmbed-Base huggingface.co Model

More LexicalEmbed-Base license Visit here:

https://choosealicense.com/licenses/mit

LexicalEmbed-Base huggingface.co

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

LexicalEmbed-Base huggingface.co Url

https://huggingface.co/cnmoro/LexicalEmbed-Base

cnmoro LexicalEmbed-Base online free

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

cnmoro LexicalEmbed-Base online free url in huggingface.co:

https://huggingface.co/cnmoro/LexicalEmbed-Base

LexicalEmbed-Base install

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

LexicalEmbed-Base install url in huggingface.co:

https://huggingface.co/cnmoro/LexicalEmbed-Base

Url of LexicalEmbed-Base

LexicalEmbed-Base huggingface.co Url

Provider of LexicalEmbed-Base huggingface.co

cnmoro
ORGANIZATIONS

Other API from cnmoro

huggingface.co

Total runs: 32
Run Growth: 32
Growth Rate: 100.00%
Updated:August 05 2026
huggingface.co

Total runs: 31
Run Growth: -3
Growth Rate: -12.50%
Updated:April 09 2026
huggingface.co

Total runs: 7
Run Growth: 6
Growth Rate: 85.71%
Updated:January 14 2025