Git Product home page Git Product logo

korpus_cz_api's Introduction

Korpus.cz API

Preface

This is a simple tool to run queries agains the Korpus.cz web application. As far as I know, it does not have any public API, but sometimes it’s useful to get some data from the database automatically.

Functionality

Currently the tool consists of a single scriptlet that just runs a CQL query and prints retrieved sentences to the console. There is no way to customize the query or to get any metadata from the results. Pagination is not supported.

The app does not check for any errors, does not handle any edge cases and is absolutely untested. It’s just a scrap.

Requirements

  • Ruby, the closer to 2.5.1 the better

Usage

First, install the required dependencies using Bundler.

$ bundle install

Then run the scriptlet, passing the CQL query as its argument.

$ ruby bin/korpus_cz_api '[lemma="Pokémon"&tag="....4..........."]'

Example output:

a hry Invizimals . Hra je jakousi variací na slavné [ Pokémony]  : po světě sbíráte rozličné potvůrky a následně s nimi
nějak zvlášť nadšená , když se i on vrhl na [ Pokémony]  , které zbožňovala jeho sestra , na druhou stranu jsem
času . „ Vezměte si malé děti , které hrají [ Pokémony]  , “ říká Gee . „ Pokémoni jsou hra pro
kravina , ale když nepovolím Julii , dají na něj [ Pokémona]  nebo Šmoulu nebo co já vím , co zrovna letí

korpus_cz_api's People

Contributors

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