GithubHelp home page GithubHelp logo

klychliiev / automatic_false_friends_detection_for_ukrainian_and_polish_languages Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.24 MB

Course project aimed at automatic detection of false friends between Ukrainian and Polish languages using orthographic and semantic features (word embeddings) of word pairs

Python 9.67% Jupyter Notebook 90.33%

automatic_false_friends_detection_for_ukrainian_and_polish_languages's Introduction

Automatic_false_friends_detection_for_Ukrainian_and_Polish_languages

Course project aimed at automatic detection of false friends between Ukrainian and Polish languages using orthographic and semantic features of word pairs

Contents

Files in this repository:

  • requirements.txt - libraries required for installation to run this project
  • alignment matrices - folder containing alignment matrices for Ukrainian and Polish languages. These matrices allow us to place vectors of Ukrainian and Polish words in a single vector space
  • datasets - folder containing datasets of Ukrainian and Polish word pairs that belong to one of the three categories: false friends, cognates, and unrelated.
  • fast_vector.py - script for generation of a multilingual vector space (single vector space for Ukrainian and Polish words in this case)
  • homographs_classification.ipynb - code for automatic classification of words based on their orthographic similarity. This script allows us to detect potential cognates and false friends while filtrating unrelated word pairs.
  • false_friends_detection.ipynb - code for automatic classification of false friends and cognates using word embeddings
  • ! note. to process vectors of Ukrainian and Polish words one must create a new folder "wiki_vectors" and download there bin+text vectors for Ukrainian and Polish from this website: https://fasttext.cc/docs/en/pretrained-vectors.html.

Program execution

To execute the program one should run two notebooks in the following order:

  1. homographs_classification.ipynb
  2. false_friends_detection.ipynb

Accuracy

The first classifier (homographs classification) showed an overall accuracy of 92%, the second one (false friends and cognates classification) showed an overall accuracy of 82%. Overall accuracy of the model is the mean of the accuracies of the separate classifiers, which is 87%.

$ python3 -m venv false-friends 

$ source false-friends/bin/activate

$ streamlit run streamlit_app/app.py 

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.