CoolFace
Apppublic

TatarNLPWorld/tatar2vec-demo

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

๐Ÿ† Tatar2Vec Explorer

<div align="center">

Discover the Power of Tatar Language AI

High-quality word embeddings for the Tatar language

![Hugging Face](https://huggingface.co/arabovs-ai-lab/Tatar2Vec) ![License](LICENSE) ![Streamlit](https://streamlit.io)

</div>

๐ŸŒŸ Overview

Tatar2Vec represents a breakthrough in natural language processing for the Tatar language, offering state-of-the-art word embeddings that significantly outperform existing solutions. This interactive demo allows you to explore the semantic richness of Tatar through cutting-edge AI models.

๐Ÿš€ Features

๐Ÿ” Semantic Search

  • โ€”Word Similarity: Find semantically similar words
  • โ€”Vector Operations: Perform complex word analogies
  • โ€”Interactive Visualizations: Explore results with beautiful charts and word clouds

๐Ÿง  Advanced Analytics

  • โ€”Model Comparison: Compare FastText vs Word2Vec performance
  • โ€”OOV Handling: Test out-of-vocabulary word capabilities
  • โ€”Performance Metrics: Detailed model evaluation scores

๐ŸŽฏ Model Variants

  • โ€”๐Ÿฅ‡ Best FastText: ft_dim100_win5_min5_ngram3-6_sg.epoch1 (Composite: 0.7019)
  • โ€”๐Ÿฅˆ Alternative FastText: ft_dim100_win5_min5_ngram3-6_sg.epoch3
  • โ€”๐Ÿฅ‡ Best Word2Vec: w2v_dim200_win5_min5_sg.epoch4
  • โ€”๐Ÿฅˆ Compact Word2Vec: w2v_dim100_win5_min5_sg

๐Ÿ“Š Performance Highlights

ModelComposite ScoreSemantic SimilarityOOV Handling
Best FastText0.70190.73681.0000
Meta cc.tt.3000.2000--
Improvement3.5ร—SignificantPerfect

๐ŸŽฎ Quick Start

Try These Examples:

Word Similarity
python
# Find words similar to "ะผำ™ะบั‚ำ™ะฟ" (school)
similar_words = model.most_similar('ะผำ™ะบั‚ำ™ะฟ', topn=10)
Word Analogies
python
# Doctor - man + woman = ?
analogy = model.most_similar(
    positive=['ั‚ะฐะฑะธะฑ', 'ั…ะฐั‚ั‹ะฝ'],  # doctor, woman
    negative=['ะธั€']               # man
)
OOV Testing (FastText Only)
python
# Handle unknown words
vector = model['ั‚ะตั…ะฝะพะปะพะณะธัะปำ™ัˆั‚ะตั€าฏ']  # technology-related word

๐Ÿ—๏ธ Technical Details

Training Corpus

  • โ€”Total Tokens: 203.2 million
  • โ€”Vocabulary Size: 637.7K words
  • โ€”Unique Words: 1.8 million
  • โ€”Domains: Wikipedia, news, books, social media

Model Architecture

  • โ€”FastText: Subword information support
  • โ€”Word2Vec: Classical word embeddings
  • โ€”Optimized: Skip-gram architecture, 100 dimensions

๐Ÿ“š Use Cases

๐ŸŽ“ Education

  • โ€”Language learning applications
  • โ€”Educational content analysis
  • โ€”Academic research

๐Ÿ’ผ Business

  • โ€”Content recommendation systems
  • โ€”Search engine enhancement
  • โ€”Customer feedback analysis

๐Ÿ”ฌ Research

  • โ€”Linguistic studies
  • โ€”Cross-lingual comparisons
  • โ€”AI model development

๐Ÿ› ๏ธ Installation

Local Development

bash
git clone https://huggingface.co/spaces/arabovs-ai-lab/tatar2vec-demo
cd tatar2vec-demo
pip install -r requirements.txt
streamlit run app.py

Docker Deployment

bash
docker build -t tatar2vec-demo .
docker run -p 7860:7860 tatar2vec-demo

๐ŸŒ API Access

python
from huggingface_hub import snapshot_download
from gensim.models import FastText

# Download and load the best model
model_dir = snapshot_download(repo_id="arabovs-ai-lab/Tatar2Vec")
model = FastText.load(f"{model_dir}/fasttext/ft_dim100_win5_min5_ngram3-6_sg.epoch1/ft_dim100_win5_min5_ngram3-6_sg.epoch1.model")

# Use the model
similar_words = model.wv.most_similar('ะผำ™ะบั‚ำ™ะฟ')

๐Ÿ“Š Evaluation Metrics

Our models were evaluated on multiple dimensions:

  • โ€”Semantic Similarity: Human-judged word pairs
  • โ€”Analogy Accuracy: Word relationship tasks
  • โ€”OOV Handling: Unknown word processing
  • โ€”Neighbor Coherence: Semantic consistency

๐Ÿค Contributing

We welcome contributions from the community! Areas of interest:

  • โ€”Additional evaluation benchmarks
  • โ€”New model architectures
  • โ€”Expanded training data
  • โ€”Multilingual applications

๐Ÿ“œ Citation

If you use Tatar2Vec in your research, please cite:

bibtex
@misc{tatar2vec2025,
  title = {Tatar2Vec: High-Quality Tatar Word Embeddings},
  author = {Arabovs AI Lab},
  year = {2025},
  publisher = {Hugging Face},
  url = {https://huggingface.co/arabovs-ai-lab/Tatar2Vec},
  note = {Version 1.0}
}

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • โ€”Tatar language speakers and contributors
  • โ€”Hugging Face for platform support
  • โ€”Open-source community for tools and libraries

<div align="center">

Empowering Tatar Language Technology

Brought to you by [Arabovs AI Lab](https://huggingface.co/arabovs-ai-lab)

Report Issues โ€ข Request Features โ€ข Contact Team

</div>