Giter Club home page Giter Club logo

sensim's Introduction

SenSim

Sentence Similarity Estimator (SenSim)

Dependancies

This repository currently supports Python 2.7
For the used default values in sts.py/sts_light.py, you need the following:
sklearn==0.18
polyglot==16.07.04 
	Dependencies: (python-numpy libicu-dev)
	(to use in ubuntu/debian) sudo apt-get install python-numpy libicu-dev
beard==0.2
digify==0.2
enchant==1.6.8
spacy==0.100.5
	Needed models: python -m spacy.en.download glove

Usage to reproduce the results in the paper

After cloning the repositpry, use sts.py with its documented arguments

Usage to reproduce the results against the STS Benchmark

After cloning the repositpry, use sts_benchmark.py with its default param

Access to the paper

http://www.aclweb.org/anthology/S17-2013

Please cite using the following BibTex entry

@InProceedings{alnatsheh-EtAl:2017:SemEval,
  author    = {Al-Natsheh, Hussein T.  and  Martinet, Lucie  and  Muhlenbach, Fabrice  and  ZIGHED, Djamel Abdelkader},
  title     = {UdL at SemEval-2017 Task 1: Semantic Textual Similarity Estimation of English Sentence Pairs Using Regression Model over Pairwise Features},
  booktitle = {Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017)},
  month     = {August},
  year      = {2017},
  address   = {Vancouver, Canada},
  publisher = {Association for Computational Linguistics},
  pages     = {115--119},
  abstract  = {This paper describes the model UdL we proposed to solve the semantic textual
	similarity task of SemEval 2017 workshop. The track we participated in was
	estimating the semantics relatedness of a given set of sentence pairs in
	English. The best run out of three submitted runs of our model achieved a
	Pearson correlation score of 0.8004 compared to a hidden human annotation of
	250~pairs. We used random forest ensemble learning to map an expandable set of
	extracted pairwise features into a semantic similarity estimated value bounded
	between 0 and 5. Most of these features were calculated using word embedding
	vectors similarity to align Part of Speech (PoS) and Name Entities (NE) tagged
	tokens of each sentence pair. Among other pairwise features, we experimented a
	classical tf-idf weighted Bag of Words (BoW) vector model but with
	character-based range of n-grams instead of words. This sentence vector
	BoW-based feature gave a relatively high importance value percentage in the
	feature importances analysis of the ensemble learning.},
  url       = {http://www.aclweb.org/anthology/S17-2013}
}

sensim's People

Contributors

natsheh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sensim's Issues

AttributeError: 'module' object has no attribute 'polyglot_nouns

File "doc_sim.py", line 105, in <module> estimator = pickle.load(open(args.estimator,"rb")) File "/usr/lib/python2.7/pickle.py", line 1384, in load return Unpickler(file).load() File "/usr/lib/python2.7/pickle.py", line 864, in load dispatch[key](self) File "/usr/lib/python2.7/pickle.py", line 1096, in load_global klass = self.find_class(module, name) File "/usr/lib/python2.7/pickle.py", line 1132, in find_class klass = getattr(mod, name) AttributeError: 'module' object has no attribute 'polyglot_nouns'

Would you help me?
I'm getting this message when I run the doc_sim.py code.

ImportError: /home/vishal/anaconda2/lib/python2.7/site-packages/_icu.so: undefined symbol: __cxa_throw_bad_array_new_length

python sts.py Traceback (most recent call last): File "sts.py", line 13, in <module> from polyglot.downloader import downloader File "/home/vishal/anaconda2/lib/python2.7/site-packages/polyglot/downloader.py", line 91, in <module> from polyglot.detect.langids import isoLangs File "/home/vishal/anaconda2/lib/python2.7/site-packages/polyglot/detect/__init__.py", line 1, in <module> from .base import Detector, Language File "/home/vishal/anaconda2/lib/python2.7/site-packages/polyglot/detect/base.py", line 11, in <module> from icu import Locale File "/home/vishal/anaconda2/lib/python2.7/site-packages/icu/__init__.py", line 37, in <module> from _icu import * ImportError: /home/vishal/anaconda2/lib/python2.7/site-packages/_icu.so: undefined symbol: __cxa_throw_bad_array_new_length

I am getting this error while running sts.py, please help...
Thanks in advance

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.