Giter Site home page Giter Site logo

kshitij0306 / semantic-search-glove-optimization Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

Optimize WordNet exploration with a semantic search algorithm, utilizing GloVe embeddings and CNF logic. Efficiently pinpoint target synsets within a constrained step count. Investigate parallel processing and optimization for enhanced performance. #WordNet #GloVe #SemanticSearch #CNF #Optimization #NLP

License: MIT License

Python 100.00%
cnf-grammer glove-embeddings nlp semantic-search word2vec wordnet

semantic-search-glove-optimization's Introduction

Semantic Search with GloVe Optimization

Welcome to the Semantic Search with GloVe Optimization project! This repository contains an enhanced semantic search algorithm using GloVe word embeddings for efficient navigation of WordNet.

Table of Contents

Introduction

The project is inspired by the "Twenty Questions" game, where the goal is to guess a target concept within a limited number of logical queries expressed in Conjunctive Normal Form (CNF). The algorithm leverages GloVe word embeddings to streamline the search process in WordNet.

Objective

The primary objective is to optimize the search algorithm, replacing an inefficient depth-first approach with a more effective strategy guided by word embeddings. The goal is to achieve quick and accurate identification of target synsets within an average of 100 steps.

Key Features

  • Integration of GloVe word embeddings for semantic analysis.
  • Logical queries in CNF for exploring hypernyms, hyponyms, and part-meronyms.
  • Binary elimination of possibilities to expedite the search.
  • Modular and extensible code structure.

Usage

To use the semantic search algorithm, follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/semantic-search-glove-optimization.git
  2. Navigate to the project directory: cd semantic-search-glove-optimization
  3. Run the algorithm: python wn_search.py
  4. Follow on-screen instructions and observe the search efficiency.

Optimization Strategies

The algorithm employs the following optimization strategies:

  • Utilization of GloVe embeddings to calculate centroids for remaining possibilities.
  • Binary elimination of potential answers based on logical queries.
  • Exploration of hypernyms, hyponyms, and part-meronyms in WordNet.

Evaluation

The success of the optimization is evaluated based on the algorithm's ability to find the target synset in WordNet within an average of 100 steps. The Oracle class in the wn_eval module is used for evaluation.

Folder Structure

  • data/: Contains GloVe word embeddings files.
  • wn_eval.py: Module for evaluation using the Oracle class.
  • wn_search.py: Main search algorithm implementation.
  • README.md: Project documentation.

Dependencies

Ensure you have the following dependencies installed:

  • nltk
  • gensim

Install dependencies using: pip install -r requirements.txt

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. Your feedback and enhancements are highly appreciated!

License

This project is licensed under the MIT License.

Happy searching!

semantic-search-glove-optimization's People

Contributors

kshitij0306 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.