Coder Social home page Coder Social logo

gretil-quotations's Introduction

Gretil graph

gretil-quotations

This repository contains the code and input data for the calculation of possible quotations and similar passages within the gretil corpus based on SIF-weighted averages of word vectors as described in this paper. The Sandhi-seperated input data was created with this code. The code of this repository is licensed under the GNU AGPLv3 license.

The etext data has been taken entirely from the GRETIL collection.

The HTML-tables produced by this code can be accessed here (download).

A graphic visualization is available here.

The code is built on fasttext and nmslib. These are needed along with numpy and scipy in order to be able to execute the code. The code for handling/storing the word vectors (fasttext.py) was taken from this repository.

To run the calculations, execute the file 'run.sh' in the code-dir.

Completing the calculations takes about 8 hours on a multicore machine with sufficient memory (please adjust the scripts according to the hardware before running them).

Given the BOW-nature of averaged word vectors, the system can quite reliably detect passages where the word order was changed or different particles have been inserted between the words. It is not yet very good at detecting phrases where a larger part of the vocabulary was exchanged with synonyms. Stemming can certainly help with regard to this problem.

gretil-quotations's People

Contributors

sebastian-nehrdich avatar

Watchers

 avatar  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.