Skip to main content

A package that suggests similar titles to one being added

Project description

Introduction

EEA Similarity provides cosine-based suggestions to a search string. Initial use is to provide a list of possible duplicates when adding content (based on the entered title)

Installation

zc.buildout

If you are using zc.buildout and the plone.recipe.zope2instance recipe to manage your project, you can do this:

  • Update your buildout.cfg file:

    [instance]
    ...
    eggs =
      ...
      eea.similarity
    
    zcml =
      ...
      eea.similarity
  • Re-run buildout, e.g. with:

    $ ./bin/buildout

You can skip the ZCML slug if you are going to explicitly include the package from another package’s configure.zcml file.

Dependencies

EEA Similarity has the following dependencies:
  • stemming

  • gensim (which in turn depends on numpy and scipy)

On CentOS you need to install:
  • blas-devel

  • lapack-devel

  • gcc-fortran

On Debian/Ubuntu you need to install:
  • libblas-dev

  • liblapack

  • gfortran

Possible issues with scipy and numpy:

Due to a bug in scipy, it is possible that the packages will not install when running buildout. There are two solutions/options:

  1. Install them with easy_install pip before running the buildout.

  2. Update zc.buildout to version 2.9.0 and activate the wheel support via buildout.wheel and the dependencies will be installed normally.

Source code

Funding

EEA - European Environment Agency (EU)

Changelog

1.0 - (2017-04-12)

  • Feature: related to index and score:
    • moved the index creation to the async instance

    • add similarity score next to object link in dialog

    • [valipod refs #83163]

  • Feature: added to registry settings:
    • equivalent content types sets, use of stopwords, number of shown suggestions

    • max. score difference between suggestions, dialog title and text

    • [valipod refs #83163]

  • Pre-upgrade step: run etc/scripts/prereq.sh on each backend [alecghica refs #82296]

  • Upgrade step: from control panel instal eea.similarity [valipod refs #82296]

  • Upgrade step: update cron jobs on blacksquirrel and trigger the index creation method [alecghica refs #82296]

  • Feature: Initial release [valipod refs #82296]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eea.similarity-1.0.zip (35.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page