External linksΒΆ

You can define some additional, custom functions (beyond Transliterations and input methods) in additional_functions.json. Right now, there are two functions there: dictionary_link_wf and dictionary_link_lemma. They are called every time an analysis div is built for a word in a sentence. If they return a non-empty string, it is interpreted as a URL leading to an external page, such as a dictionary entry for this word or lemma. Both are called with similar parameters: lang (current language, as in the languages list in corpus.json), wf (current word), analyses or ana (current analyses or analysis) and sent_meta (sentence- and document-level metadata in a single dictionary). The lemma, if any, can be found in ana['lex'].

Also see Input methods.

tsakorpus

Navigation

Contents:

  • Short FAQ
  • Getting started
  • Examples
  • Forks
  • Source convertors
  • Data model
  • Categories and tags
  • Corpus configuration
    • Configuration files
    • Configuring your corpus
    • List of parameters
    • Elasticsearch configuration
    • Further configuration
  • Indexing
  • Interface languages

Related Topics

  • Documentation overview
    • Corpus configuration
      • Previous: Transliterations
      • Next: Input methods
©2021-2026, Timofey Arkhangelskiy. | Powered by Sphinx 9.1.0 & Alabaster 1.0.0 | Page source