Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:manualy:alpha [2022/12/07 20:12] – [Příklady použití] milicka | en:manualy:alpha [2024/10/19 17:02] (current) – [How to cite Alpha] milicka |
---|
[{{ :manualy:alpha.png?300|Rozhraní aplikace Alpha}}] | [{{ :manualy:alpha.png?300|Rozhraní aplikace Alpha}}] |
| |
The [[http://www.alpha.korpus.cz|Alpha]] application is as a natural language to Corpus Query Language ([[pojmy:cql|CQL]]) translator. | The [[http://alpha.korpus.cz|Alpha]] application is as a natural language to Corpus Query Language ([[pojmy:cql|CQL]]) translator. |
| |
If you write your queries in Czech, it will translate them into CQL formalism suitable for direct use in [[manualy:kontext:index|KonText]] search engine, including morphological tags etc. It will respond to English queries with tags typical for [[https://universaldependencies.org/|Universal Dependencies]]. These are so far only usable with [[https://wiki.korpus.cz/doku.php/cnk:intercorp:verze13ud|InterCorp corpora in version 13UD]], which are annotated according to this standard. | If you write your queries in Czech, it will translate them into CQL formalism suitable for direct use in [[manualy:kontext:index|KonText]] search engine, including morphological tags etc. It will respond to English queries with tags typical for [[https://universaldependencies.org/|Universal Dependencies]]. These are so far only usable with [[https://wiki.korpus.cz/doku.php/cnk:intercorp:verze13ud|InterCorp corpora in version 13UD]], which are annotated according to this standard. |
| |
| |
===== Příklady použití ===== | ===== Application examples ===== |
Change the corpus name to ''%%intercorp_v13ud_de%%'', then try query //find all lemmata that begin with "schei" and are dependent on an object//, Alpha should translate this sentence as ''%%[lemma="schei.*" & p_deprel="obj"]%%''. | Try query //In a German corpus, find all lemmata that begin with "Schei" and are dependent on an object//, Alpha should translate this sentence as ''%%[lemma="Schei.*" & p_deprel="obj"]%%'' after presing the Enter or clicking on the "Vyhledej v korpusu" button, the query is performed by the //Kontext// tool. |
| |
Or you can try Czech language: //najdi slovo „na“ následované lemmatem „hrad“//, this query translates as ''%%[lc="na"][lemma="hrad"]%%''. Note that the words you want to find must be in **quotes**, this will make it clear if you want to //find a noun// i.e. ''%%[upos="NOUN|PROPN"]%%'', or //find „a noun“//, i.e. ''%%[word="a"][word="noun"]%%''. | Or you can try Czech language: //najdi slovo „na“ následované lemmatem „hrad“//, this query translates as ''%%[lc="na"][lemma="hrad"]%%''. Note that the words you want to find must be in **quotes**, this will make it clear if you want to //find a noun// i.e. ''%%[upos="NOUN|PROPN"]%%'', or //find „a noun“//, i.e. ''%%[word="a"][word="noun"]%%''. |
| |
| |
===== Jak citovat Alphu ===== | ===== How to cite Alpha ===== |
| |
<WRAP round tip 80%> | <WRAP round tip 80%> |
Milička, J.: Alpha: Překladač z přirozeného jazyka do CQL. FF UK. Praha 2020. Dostupný z WWW: <http://www.alpha.korpus.cz>. | Milička, J.: Alpha: Natural Language to Corpus Query Language Translator. FF UK. Praha 2020. Available from WWW: <http://www.alpha.korpus.cz>. |
| |
| Milička, J., & Šebestová, D. (2024). Query a corpus in near-natural language: A human-friendly corpus query language not only for linguists. In S. Buschfeld, P. Ronan, T. Neumaier, A. Weilinghoff, & L. Westermayer (Eds.), //Crossing Boundaries through Corpora: Innovative Approaches to Corpus Linguistics.// John Benjamins. |
</WRAP> | </WRAP> |
| |
| |