Git Product home page Git Product logo

german-noun-compounds's Introduction

german-noun-compounds

This repository contains the code created for my Bachelor thesis project "Automatic extraction of semantic relations in German compounds".

The packages I used for this project can be found in requirements.txt.
The amrlib model "model_parse_xfm_bart_large-v0_1_0" which is necessary for the parsing of the AMRs still needs to be downloaded and moved. It can be found here: https://github.com/bjascob/amrlib-models/releases
The model should be extracted in the directory amrlib/data and the name should be changed to model_stog.

The Ghost-NN data set (https://aclanthology.org/L16-1362/) was utilized for this project. It contains German noun compounds and their semantic relations.

The Python module duden was used to extract the meanings of the compounds from the Duden online dictionary. https://github.com/radomirbosak/duden
For the extraction of the meanings from Duden meaning_extraction.py needs to be executed. I analyzed the results of 50 random compounds of the data set. I generated the data set for the analysis in meaning_random_50_analysis.py.

The German meaning descriptions were translated into English with the DeepL Python API. https://github.com/DeepLcom/deepl-python
This is implemented in translation_to_en.py.

The AMRs of these translations were parsed with amrlib. https://github.com/bjascob/amrlib
To do this, amrlib_sent_to_amr.py has to be executed.

A data set with features was generated in feature_engineering.py which was then used for multiclass-classification in compound_relation_classification_with_sklearn.ipynb.

Finally, a multiclass-classification with a pretrained transformer model was performed in compound_classification_transformers.ipynb.

german-noun-compounds's People

Contributors

sabrinas-workspace avatar

Watchers

 avatar

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.