Git Product home page Git Product logo

tftosql's Introduction

tftosql

Convert text-fabric-data to sqlite for rapid querying. You will need text-fabric and text-fabric-data. You can use pip install to get the former, the latter can be cloned from https://github.com/ETCBC/text-fabric-data (make sure that it shares a parent directory with tftosql).

To generate the actual sqlite3 file:

python3 main.py

To make api_search.py work, you need the index (which adds a lot of bulk to the file)

python3 generate_range_wid_index.py

If all has gone well, you should now be able to run searches on the data that generate results remarkably quickly:

python3 api_search.py

Using the search term that finds sentences with ראה

search_data = {
    "query":[{"lex":"R>H["}],
    "search_range":"sentence",
}

The module returns 1280 results in fraction of a second:

t=0
RESULTS: 1280
time to complete: 0.21850655297748744

tftosql's People

Contributors

jcuenod avatar

Stargazers

 avatar  avatar

Watchers

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