Downloads · 30 days
61
16% of all-time downloads
anuragwagh0/marathlish-minilm
marathlish-minilm is a sentence similarity model from anuragwagh0. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a Marathlish (Marathi-English code-mixed) sentence embedding model. It maps "Marathlish" queries (e.g., "Bhau paise pathvayche") to their English semantic equivalents (e.g., "Money Transfer").
Downloads · 30 days
61
16% of all-time downloads
All-time downloads
375
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
This is a Marathlish (Marathi-English code-mixed) sentence embedding model. It maps "Marathlish" queries (e.g., "Bhau paise pathvayche") to their English semantic equivalents (e.g., "Money Transfer").
It is designed for Indian developers building Search Engines, Chatbots, or Recommendation Systems for India.
First, install the library:
pip install sentence-transformers
This shows how the model converts text into numbers (vectors).
from sentence_transformers import SentenceTransformer
# Load the model
model = SentenceTransformer('anuragwagh0/marathlish-minilm')
# Encode sentences
sentences = ["Mala loan hava ahe", "I want a loan"]
embeddings = model.encode(sentences)
print(embeddings.shape)
# Output: (2, 384) -> Two sentences, each is a vector of size 384
This is how you use the model to "route" user queries to the right function in your app.
from sentence_transformers import SentenceTransformer, util
model = SentenceTransformer('anuragwagh0/marathlish-minilm')
# 1. Define your App's Capabilities (The "Targets")
app_actions = [
"Check Account Balance",
"Transfer Money",
"Call Customer Support"
]
# 2. Encode your actions (Do this once on startup)
action_vectors = model.encode(app_actions)
# 3. Simulate a User Query
user_query = "Bhau paise pathvayche" # Marathlish Input
query_vector = model.encode(user_query)
# 4. Find the best match
scores = util.cos_sim(query_vector, action_vectors)[0]
best_match_idx = scores.argmax()
best_action = app_actions[best_match_idx]
print(f"User said: '{user_query}'")
print(f"Bot Action: {best_action}")
# Output: Bot Action: Transfer Money
all-MiniLM-L6-v2 (Lightweight, ~80MB)Fine-tuned using sentence-transformers on a synthetic dataset of 5000+ banking, tech support, and casual conversation pairs.