Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

marc-record-similarity

petuomin25ISC1.0.1

Checks the similarity of 2 marc records using neural network.

marc, deduplication, similarity

readme

marc-record-similarity

Checks the similarity of 2 marc records using neural network.

Installation


npm install marc-record-similarity

Usage

var RecordSimilarity = require('marc-record-similarity');

var similarityChecker = new RecordSimilarity(options);

options:
    network: brain.NeuralNetwork (see [brain](https://github.com/harthur/brain))
    strategy: strategy (attributes) that were used to train the network


var res = similarity.check(record1, record2);

Records are expected to be in marc-record-js format.

res will be in the range [0,1], where

  • 0 means not duplucate and
  • 1 means that the records are a duplicate.