Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  dvc git
Shambhavi Mishra c1c61b959d
Adding dvc to requirements
2 years ago
488a93d079
Initialize DVC
2 years ago
src
a4921ceded
Adding the code
2 years ago
488a93d079
Initialize DVC
2 years ago
a14a13c4a2
Add the model to DVC tracking
2 years ago
a4921ceded
Adding the code
2 years ago
a4921ceded
Adding the code
2 years ago
a4921ceded
Adding the code
2 years ago
6920900e9e
Add the data directory to DVC tracking
2 years ago
a14a13c4a2
Add the model to DVC tracking
2 years ago
c1c61b959d
Adding dvc to requirements
2 years ago
a4921ceded
Adding the code
2 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.md

You have to be logged in to leave a comment. Sign In

Semantic_Similarity

Calculating semantic similarity between the search query and the database to retrieve the most similar one and rank them accordingly.

Prerequisites

  • Python 3.8+
  • Transformers
  • All the specified requirements in the text file.

Usage

  1. Clone this repository.
  2. Install requirements.txt using pip install -r requirements.txt.
  3. Use DVC to pull the files that are stored on the DAGsHub remote storage by running dvc pull
  4. To run the code for BERT-based model, use the command :
python src/main.py --model_name 'BERT' --search_criteria './data/search.txt' --query_file './data/data.csv' --column_name 'Title'
  1. To run the code for FastText-based model, use the command :
python src/main.py --model_name 'fasttext' --search_criteria './data/search.txt' --query_file './data/data.csv' --column_name 'Title'
  1. The search criteria can either be a file or a text string.
  2. Other arguments can be customised as per your data.

Running the Streamlit App

To run the streamlit app:

streamlit run app.py

Dataset

The dataset has been extracted from Kaggle and is based on questions from Stack Overflow.

Tip!

Press p or to see the previous file or, n or to see the next file

About

No description

Collaborators 1

Comments

Loading...