Giter Site home page Giter Site logo

klougle's Introduction

KLougle

KLougle (any similarity to other well known search engines is totally incidental) is an indexing search engine that scrapes data from news sites like CNN, BBC and The Guardian and allows you to perform search queries on the data it gathers. It was developed as part of the semester project in my Natural Language Processing class. It is comprised of 2 parts:

Frontend

The frontend (/frontend/main.py) loads the inverted index, that is located inside the inv_index folder and is able to answer queries provided by the user by returning the links that are most relevant to the question in a descending order (based on the TF-IDF metric).

The Kivy library is used for the UI.

Backend

The backend (/crawlers/tools/main.py) is responsible of building the aforementioned inverted index.

First of all it spawns the spiders that will scrape the sites (using Beautiful Soup), based on the restrictions the user has set (which categories, how many links per category).

Then the indexer is spawned which will process the content of the links that were downloaded previously (using NLTK). It will lemmatize the terms, remove the ones from the closed class categories (articles, modals etc.), and will update the index using the new TF-IDF value of every term.

Installation & Usage

It has been tested on a Windows 10 environment with Python 3.6 installed using PyCharm IDE. The package requirements to run this, are listed in the requirements.txt file.

To run any of the above parts, just execute the corresponding main.py and the console will guide you through the process.

License

This project is uploaded for educational purposes only.

MIT

klougle's People

Contributors

loukwn 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.