Go to file
2022-01-25 15:37:59 +01:00
.gitignore Initial setup 2022-01-14 09:42:34 +01:00
app.py Added other languages. 2022-01-25 15:37:59 +01:00
docker-compose.yml Docker + GPUs. 2022-01-18 10:08:59 +01:00
Dockerfile Initial setup 2022-01-14 09:42:34 +01:00
Dockerfile.gpu Docker + GPUs. 2022-01-18 10:08:59 +01:00
LICENSE Initial commit 2021-12-01 07:58:09 +00:00
README.md Added other languages. 2022-01-25 15:37:59 +01:00
requirements.txt Initial setup 2022-01-14 09:42:34 +01:00

classla-api

Description

This tool uses classla library as an API. It allows for calls on some preset classla settings, as well as a custom one.

Slovenian Standard UD

Preset classla settings:

{
  "lang": "sl",
  "pos_use_lexicon": true
}

Usage example:

curl -X POST -d '{"text": "France Prešeren je rojen v Vrbi."}' https://orodja.cjvt.si/oznacevalnik/standard-ud

Slovenian Standard JOS

Preset classla settings:

{
  "lang": "sl",
  "pos_use_lexicon": true,
  "type": "standard_jos"
}

Usage example:

curl -X POST -d '{"text": "France Prešeren je rojen v Vrbi."}' https://orodja.cjvt.si/oznacevalnik/standard-jos

Slovenian Nonstandard UD

Preset classla settings:

{
  "lang": "sl",
  "pos_use_lexicon": true,
  "type": "nonstandard"
}

Usage example:

curl -X POST -d '{"text": "kva smo mi zurali zadnje leto v zagrebu..."}' https://orodja.cjvt.si/oznacevalnik/nonstandard-ud

Slovenian Nonstandard JOS

Preset classla settings:

{
  "lang": "sl",
  "pos_use_lexicon": true,
  "processors": {
      "tokenize": "nonstandard",
      "lemma": "nonstandard",
      "pos": "nonstandard",
      "depparse": "standard_jos",
      "ner": "nonstandard"
    }
}

Usage example:

curl -X POST -d '{"text": "kva smo mi zurali zadnje leto v zagrebu..."}' https://orodja.cjvt.si/oznacevalnik/nonstandard-jos

Croatian Standard UD

Preset classla settings:

{
  "lang": "hr",
}

Usage example:

curl -X POST -d '{"text": "Ante Starčević rođen je u Velikom Žitniku."}' https://orodja.cjvt.si/oznacevalnik/hr-standard-ud

Croatian Nonstandard UD

Preset classla settings:

{
  "lang": "hr",
  "type": "nonstandard"
}

Usage example:

curl -X POST -d '{"text": "kaj sam ja tulumaril jucer u ljubljani..."}' https://orodja.cjvt.si/oznacevalnik/hr-nonstandard-ud

Serbian Standard UD

Preset classla settings:

{
  "lang": "sr",
}

Usage example:

curl -X POST -d '{"text": "Slobodan Jovanović rođen je u Novom Sadu."}' https://orodja.cjvt.si/oznacevalnik/sr-standard-ud

Serbian Nonstandard UD

Preset classla settings:

{
  "lang": "sr",
  "type": "nonstandard"
}

Usage example:

curl -X POST -d '{"text": "ne mogu da verujem kakvo je zezanje bilo prosle godine u zagrebu..."}' https://orodja.cjvt.si/oznacevalnik/sr-nonstandard-ud

Bulgarian Standard UD

Preset classla settings:

{
  "lang": "bg",
}

Usage example:

curl -X POST -d '{"text": "Алеко Константинов е роден в Свищов."}' https://orodja.cjvt.si/oznacevalnik/bg-standard-ud

Macedonian Standard UD

Preset classla settings:

{
  "lang": "mk",
}

Usage example:

curl -X POST -d '{"text": "Крсте Петков Мисирков е роден во Постол."}' https://orodja.cjvt.si/oznacevalnik/mk-standard-ud

Custom settings

Custom settings may be used, however they have to be in compliance with what the library allows (you can check this on https://github.com/clarinsi/classla)

###Warning: Usage of custom settings is a slow action! It may take more than 30s to get a result!

Usage example:

curl -X POST -d '{"text": "France Prešeren je rojen v Vrbi.", "settings": {"lang": "sl", "pos_lemma_pretag": false}}' https://orodja.cjvt.si/oznacevalnik/custom-settings