Diplomová práce

Automatic generation of CQL queries from natural language

Bc. Ota Mikušek, učo 514440
Anotace

Corpus Query Language (CQL) umožňuje vyhledávání v lingvisticky anotovaných korpusech. Správné psaní CQL vyžaduje technické znalosti dotazovacího jazyka a metadata cílového korpusu. Tato práce studuje a nabízí řešení úlohy překladu přirozeného jazyka do CQL pomocí jazykových modelů. Pro účely trénování a vyhodnocení jsem vytvořil dvě datové sady. Za prvé jsem zpracoval 19 913 668 požadavků zaslaných …více

Abstract

Corpus Query Language (CQL) enables searches over linguistically annotated corpora. Writing correct CQL requires technical knowledge of the query language and the metadata of the target corpus. This thesis studies and provides a solution to the task of translating natural language into CQL using language models. For the purpose of training and evaluation, I constructed two datasets. First, I processed …více

Zadání práce
The aim of the thesis is to develop a system that translates a natural language corpus query (such as "find all plural nouns followed by an adverb") into a CQL query as used by the Sketch Engine corpus management system. The student is expected to explore state-of-the-art language models that are available (either online as a service or offline as part of the system) and exploit the models to perform the translation, optionally also fine-tuning or training custom models. As for the online models, the student will be given paid access to the API provided by OpenAI ChatGPT, Google Gemini and Anthrophic Claude.

The source language should be primarily English but the system should be input language agnostic (limited only by the language model used) and it should generate CQL queries matching a particular corpus description (set of corpus attributes, structures, a part-of-speech tagset definition etc.) which will be part of the input. The system will validate the generated queries and reiterate if necessary without user intervention.

As part of the thesis, the student will provide an evaluation consisting of comparison of the approaches taken to solve the task. This evaluation will be carried out on a sample set of at least 200 natural language queries, each in 3 different languages, for which the student will assess the output quality of the individual models and methods.
Práce zkontrolována:
23. 12. 2025 20:04, RNDr. Miloš Jakubíček, Ph.D., učo 172962
Jazyk práce
angličtina angličtina
Termín obhajoby
4. 2. 2026
Práce byla úspěšně obhájena

Vedoucí

RNDr. Miloš Jakubíček, Ph.D., učo 172962
CZPJ KSUZD FI MU

Oponent

doc. Mgr. Pavel Rychlý, Ph.D., učo 3692
KSUZD FI MU

Literatura

  • JAKUBÍČEK, Miloš; Pavel RYCHLÝ; Adam KILGARRIFF a Diana MCCARTHY. Fast syntactic searching in very large corpora for many languages. In PACLIC 24 Proceedings of the 24th Pacific Asia Conference on Language, Information and Computation. Tokyo: Waseda University, 2010, s. 741-747. ISBN 978-4-905166-00-9.

  • Přidání souboru

    Soubor nebo složku lze nahrát pomocí tlačítka Přidat.
  • Další operace se soubory

    Podrobnosti lze zjistit označením příslušného řádku.
  • Pohled pro experty

    Pro častou práci je možné zvolit režim Více možností.
  • Vyhledávání souborů

    Vyhledávaný výraz můžete zadat přímo do adresního řádku.
  • Rychlý přístup k souborům

    Pomocí funkce Nedávné je možné se rychle vrátit k právě prohlíženým souborům. Oblíbené soubory je také možné označit Hvězdičkou.