Git Product home page Git Product logo

barbara's Introduction

BARBarA

A Bad Acronym Regarding a Bachelor Assignment

DESCRIPTION

This is the source code of a senior thesis done at the University of Heidelberg at the department for Computational Linguistics until August 2016.

The goal of this project was to analyze the use of word vector representations for the task of semantic relation prediction. A paper from (Bordes et al., 2013) was used as an inspiration. Hereafter, three experiments were conducted:

  • Replicating the results of (Bordes et al., 2013) with a smaller dataset based on German relation triples from Freebase
  • Clustering word embedding offsets to find new word pairs belonging to a semantic relation
  • Training relation vectors with the training procedure from (Bordes et al. 2013), but using word embeddings for the entity representations.

REQUIREMENTS

The following external python modules need to be installed to use this code:

  • gensim
  • gzip
  • matplotlib
  • mpl_toolkits
  • numpy
  • scipy
  • sklearn
  • yaml

Not all of those dependencies are obligatory depending on the part of the project you want to execute. Word2Vec was used in this project to train word embeddings.

USAGE

The project is divided into multiple packages and subpackages:

  • src.clustering: Clustering of mapping vectors.
  • src.eval: Evaluation of word embeddings.
  • src.mapping: Creation of mapping vectors from word embedding pairs.
  • src.misc: Helper function and decorators.
  • src.prep: Scripts used for different preparations steps for fundamental resources.
  • src.trans_e: TransE related preparation scripts as well as TransE inspired Training with word embeddings.

Describing the usage of all of the scripts within the packages would go beyond the capabilities of a README. Therefore, it is recommended to consult the extensive documentation found in the docs/_build/ folder in html and latex format. Also, most of the scripts are equipped with Python's argparse or optparse module. As so, executing the script via python <script_name> -h will display possible command line arguments and short descriptions thereof.

LICENSE & COPYRIGHT

This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. For more information, please refer to http://unlicense.org

barbara's People

Watchers

 avatar  avatar

Forkers

dboth

barbara's Issues

Schreibfehler

In deinem Abkürzungsverzeichnis hast du "Pwart of Speech" stehen. Das ist sehr falsch. Schäm dich.

Hochachtungsfoll
D. Both und T. Weidler

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.