Code Monkey home page Code Monkey logo

sts13's Introduction

STS13

Semantic Textual Similarity task 2012/2013/2014


Dependencies

  • numpy

  • sklearn (scikit-learn)

  • nltk (may require X11 under OS X)

  • Google n-gram word counts and Takelab LSA models under directory _data


Python path

Make sure you have lib/python in your PYTHONPATH, e.g. in Bash use

$ export PYTHONPATH=$PYTHONPATH:~/Projects/SemTextSim/github/STS13/lib/python


Example: generating Takelab features for new STS14 trial data

  1. Make sure you have Google n-gram word counts and Takelab LSA models under directory _data

  2. Add 2014 trial data files under new directory data/STS2014-trial

  3. Create lib/python/sts/sts14.py defining dirs, ids and filenames for STS14 trial data

  4. Create lib/python/ntnu/sts14.py defining dirs and filenames of features for STS14 trial data

  5. Create Takelab features by adding function to ntnu/make-takelab-feat.py:

    make_feats(sts.sts14.trial_input_fnames, ntnu.sts14.test_dir, with_lsa)

    Temporary comment out calls to make_feats for other STS datasets

  6. Change to dir ./ntnu and run ./make-takelab-feat.py

    New features appear in files out/STS2014-trial//.txt


Example: testing a new feature

Suppose we have a new feature called "my_feat" that we want to try on the MSRpar dataset from STS12.

  1. Add the feature to the training and test data as files

    out/STS2012-train/MSRpar/my_feat.txt out/STS2012-test/MSRpar/my_feat.txt

  2. Run a script ntnu/my_feat.py

    Check comments in the script

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.