GithubHelp home page GithubHelp logo

selpref-emb's Introduction

selpref-emb

Selectional Preference Embeddings (EMNLP 2017)

This repository contains joint embeddings of selectional preferences, words, and fine-grained entity types.

Download

Usage

The files are in gensim model format, which can be loaded in Python like this:

from gensim.models import KeyedVectors

emb_file = "/path/to/embedding_file"
emb = KeyedVectors.load_word2vec_format(emb_file, binary=True)

The vocabulary consists of:

  • verbs and their dependency relation separated by "@", e.g. "sink@nsubj" or "elect@dobj"
  • words and short noun phrases, e.g. "Titanic"
  • fine-grained entity types using the FIGER inventory, e.g.: /product/ship or /person/politician

UMAP visualization

Reference

@InProceedings{D17-1138,
  author = 	"Heinzerling, Benjamin
		and Moosavi, Nafise Sadat
		and Strube, Michael",
  title = 	"Revisiting Selectional Preferences for Coreference Resolution",
  booktitle = 	"Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing",
  year = 	"2017",
  publisher = 	"Association for Computational Linguistics",
  pages = 	"1343--1350",
  location = 	"Copenhagen, Denmark",
  url = 	"http://aclweb.org/anthology/D17-1138"
}

selpref-emb's People

Contributors

bheinzerling avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aiphes nlpathits

selpref-emb's Issues

Cannot reproduce result in the paper

In the paper, it mentioned the cosine similarity between (Titanic, sank@nsubj) is 0.11 while the similarity of (iceberg, sank@nsubj) is -0.005. However, using all 6 models provided, I could not achieve the same number. What is the issue?
emb.similarity('titanic', 'sink@nsubj') emb.similarity('iceberg', 'sink@nsubj')

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.