GithubHelp home page GithubHelp logo

putnich / sr-sh-nlp Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 7.02 MB

NLP resources for Serbian and Serbo-Croatian. This repository currently contains parsed Serbo-Croatian Wiktionary data (words with definitions and synonyms) and data from the Systematic Dictionary of Serbo-Croatian. Entries are stored in an XML compliant to TEI Lex0 specification.

Jupyter Notebook 100.00%
nlp nlp-resources serbian wiktionary wiktionary-dump serbo-croatian

sr-sh-nlp's Introduction

NLP resources for Serbian and Serbo-Croatian

Wikipedia and Wiktionary resources are distributed under the CC BY-SA 3.0 license.

All dictionaries were parsed using Python 3.8.3. The regex library re was used to match the structure of dictionary entries and extract the data.

The XML structure is specified according to TEI Lex0, with a few additional tags.

The Wiktionary synonyms and definitions were collected from the Wiktionary dump of September 2020. The <entry>s contain an orthographic form (<orth>) of a word and grammatical information group (<gram>). Entries contain senses inside <sense> tags, each with a list of <xr type="synonymy"> cross-referencing synonyms. Since we extracted both synonyms and definitions from SH Wiktionary, there are two corresponding files. Definitions are either given as text or are derived from synonyms. In the definitions file, in addition to the orthographic form, we also recorded syllables (<hyph>) and pronunciation information (<pron>) tags. We kept all styling information, abbreviations and node descriptions inside <innerlink> tags.

The Systematic Dictionary of Serbo-Croatian contains words related to each other via systematic groups. We chose the first words from a group as a group name. Sets of words in a group are divided into subgroups and they were recorded as senses, with cross-referenced words in <xr type=”related”> tags. Subgroups that were not synonymous to the group (antonyms, for example) were recorded under <relations> tag, with <relation> representing a related group that can contain its own senses and words.

sr-sh-nlp's People

Contributors

putnich avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

slavicaj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.