Add initial project files including .gitignore, README, Procfile, and .replit for Flask-based WSD tool
Browse files- .gitignore +48 -0
- .replit +1 -0
- LESK +1 -0
- Procfile +1 -0
- README.md +24 -0
.gitignore
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Byte-compiled / optimized / DLL files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[cod]
|
| 4 |
+
*$py.class
|
| 5 |
+
|
| 6 |
+
# Virtual environments
|
| 7 |
+
venv/
|
| 8 |
+
env/
|
| 9 |
+
ENV/
|
| 10 |
+
|
| 11 |
+
# Distribution / packaging
|
| 12 |
+
dist/
|
| 13 |
+
build/
|
| 14 |
+
*.egg-info/
|
| 15 |
+
|
| 16 |
+
# Unit test / coverage reports
|
| 17 |
+
htmlcov/
|
| 18 |
+
.tox/
|
| 19 |
+
.coverage
|
| 20 |
+
.coverage.*
|
| 21 |
+
.cache
|
| 22 |
+
nosetests.xml
|
| 23 |
+
coverage.xml
|
| 24 |
+
*.cover
|
| 25 |
+
.hypothesis/
|
| 26 |
+
|
| 27 |
+
# Environments
|
| 28 |
+
.env
|
| 29 |
+
.venv
|
| 30 |
+
env/
|
| 31 |
+
venv/
|
| 32 |
+
ENV/
|
| 33 |
+
env.bak/
|
| 34 |
+
venv.bak/
|
| 35 |
+
|
| 36 |
+
# IDE specific files
|
| 37 |
+
.idea/
|
| 38 |
+
.vscode/
|
| 39 |
+
*.swp
|
| 40 |
+
*.swo
|
| 41 |
+
|
| 42 |
+
# OS specific files
|
| 43 |
+
.DS_Store
|
| 44 |
+
Thumbs.db
|
| 45 |
+
|
| 46 |
+
# Project specific
|
| 47 |
+
feedback_data.json
|
| 48 |
+
flask_session/
|
.replit
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
run = "python app.py"
|
LESK
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Subproject commit 2aa9e13dd824fde38818152b850afbdc9c075f78
|
Procfile
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
web: gunicorn app:app
|
README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: LESK BERT WSD
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: "#ff7f50"
|
| 5 |
+
colorTo: "#1e90ff"
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: "3.0.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# LESK BERT WSD
|
| 13 |
+
|
| 14 |
+
This project implements Word Sense Disambiguation (WSD) using the enhanced Lesk algorithm and BERT embeddings.
|
| 15 |
+
|
| 16 |
+
## How to use
|
| 17 |
+
|
| 18 |
+
1. Enter a word or sentence in the input field.
|
| 19 |
+
2. The model will predict the correct sense of the word based on context.
|
| 20 |
+
|
| 21 |
+
## Model Information
|
| 22 |
+
|
| 23 |
+
- The model uses BERT embeddings for better understanding of word contexts.
|
| 24 |
+
- The Lesk algorithm helps disambiguate word senses based on context overlap.
|