GithubHelp home page GithubHelp logo

pmozil / suffix_trees Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 1.1 MB

A discrete maths project focusing on suffix trees

License: GNU General Public License v3.0

Python 100.00%
graphs suffix-tree suffix-trie text

suffix_trees's Introduction

Autocomplete & search

Usage

In the project suffix and prefix trees are used. In order for the main ui to work, they need to be accessible.

Therefore, the first step is to install the project

Installation

If using pdm

Create a virtual environment(if not already):

pdm venv create

Use the virtual environment:

pdm use

Install the project:

pdm install

If using pip

Create a virtual environment(if not already):

python3 -m venv venv

Use the virtual environment:

source venv/bin/activate

Install the project:

pip install -e .

If not all packages are loading, install them using:

pip install -r requirements.txt

Running

Just run the src/ui/ui.py file:

python src/ui/ui.py

ui.gif

Now type some text in the bottom field. When a word with the same begginning is found, it will be displayed in a popup as a suggestion. If you click on the suggestion or press enter while focused(for example, using tab), the suggestion will be inserted into the text field.

To search for a word, type it in the top field and press the button. All the matches will be highlighted.

Contributing

Make sure to

python3 -m venv venv
source venv/bin/activate
pip install -e .

before committing, as otherwise the pre-commit will fail

suffix_trees's People

Contributors

katjakovalchuk avatar oleksandr0605 avatar pmozil avatar rhusiev avatar yurevych2 avatar

Stargazers

 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.