Skip to content

Gunjankumar55/LESK_BERT_WSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SenseResolver - Modern WSD with BERT & Lesk

Python Flask NLTK BERT Demo

An advanced Word Sense Disambiguation (WSD) system that combines the Lesk algorithm with BERT embeddings for improved accuracy in determining word meanings from context.

🚀 Live Demo

Try the live demo: https://gkc55-nlp-wsd.hf.space/

🎯 Features

  • Enhanced Lesk Algorithm: Improved version of the traditional Lesk algorithm
  • BERT Integration: Uses BERT embeddings for better context understanding
  • Interactive Web Interface: User-friendly Flask-based web application
  • Real-time Feedback System: Learn from user corrections to improve accuracy
  • Context-Aware Processing: Considers surrounding words with proximity weighting
  • Multiple Sense Support: Handles words with multiple meanings effectively

🧠 How It Works

  1. Input Processing: Analyzes text to identify ambiguous words
  2. Context Extraction: Extracts and weights context words based on proximity
  3. Sense Comparison: Compares each possible word sense with the context
  4. BERT Similarity: Uses BERT embeddings to calculate semantic similarity
  5. Sense Selection: Selects the most appropriate sense based on combined scores
  6. User Feedback: Learns from user corrections to improve future results

🛠️ Technical Stack

  • Backend: Flask, Python 3.9
  • NLP: NLTK, BERT Transformers
  • Frontend: HTML, CSS, JavaScript, Bootstrap 5
  • Deployment: Docker, Hugging Face Spaces

📋 Prerequisites

  • Python 3.9+
  • pip (Python package manager)
  • Docker (for containerization)

🚀 Quick Start

  1. Clone the repository:
git clone https://github.com/Gunjankumar55/LESK_BERT_WSD.git
cd LESK_BERT_WSD
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
python app.py
  1. Access the web interface at http://localhost:5000

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

👨‍💻 Author

Gunjankumar Choudhari

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages