Diakritik

DIAKRITIK is a tool for reconstructing diacritics. It was developed in the SNC and made available on August 18, 2014. It draws on the use of a language model based on the large corpus of Slovak language texts. One of the following methods with different error / speed ratios can be used for reconstruction:
firstSelects the first reconstruction option it finds in the text.
randomWhere possible, replaces each word with a random word with diacritics.
naïveSelects the most common words featuring diacritics.
n-gramWill use a language model – words are reconstructed in sections of the length n so that the probability of occurrence of the resulting sentence in Slovak is as high as possible. The higher the n, the better the accuracy, but the greater the computational complexity.
remove diacriticsOpposite procedure, the tool removes diacritics from the uploaded text.

The error rate of the reconstructed text, i.e. the ratio of words with incorrect diacritics, is approximately 0.21%, i.e. the reconstruction of about one word out of five hundred will be erroneous. The more similar the text is to standard Slovak, the more successful its reconstruction.

Method:

More links

The reconstruction is available at http://diakritik.korpus.sk/