Git Product home page Git Product logo

nemex's Introduction

NEMEX

Named Entity Matching and Extraction (NEMEX) is a python package for approximate entity extraction. Currently, it is mainly based on Faerie [1] algorithm.

Installation

Soon as:

pip install nemex

Quickstart

Here we show a simple example to extract entities from a pre-defined dictionary.

from nemex import Nemex
import json

E = [
    "kaushik ch",
    "chakrabarti",
    "chaudhuri",
    "venkatesh",
    "surajit ch"
]
D = "an efficient filter for approximate membership checking. venkaee shga kamunshik kabarati, dong xin, surauijt chadhurisigmod."

nemex = Nemex(E) # initialize with dictionar
output = nemex(D) # query document

print(json.dumps(output, indent=2))

Running the example gives results as:

{
  "document": "an efficient filter for approximate membership checking. venkaee shga kamunshik kabarati, dong xin, surauijt chadhurisigmod.",
  "matches": [
    {
      "valid": true,
      "entity": [
        "chaudhuri",
        2
      ],
      "score": 2,
      "match": " chadhuri",
      "span": [
        108,
        117
      ]
    },
    {
      "valid": true,
      "entity": [
        "chaudhuri",
        2
      ],
      "score": 1,
      "match": "chadhuri",
      "span": [
        109,
        117
      ]
    },
    {
      "valid": true,
      "entity": [
        "chaudhuri",
        2
      ],
      "score": 2,
      "match": "chadhuris",
      "span": [
        109,
        118
      ]
    },
    {
      "valid": true,
      "entity": [
        "chaudhuri",
        2
      ],
      "score": 2,
      "match": "hadhuri",
      "span": [
        110,
        117
      ]
    },
    {
      "valid": true,
      "entity": [
        "venkatesh",
        3
      ],
      "score": 2,
      "match": "venkaee sh",
      "span": [
        57,
        67
      ]
    },
    {
      "valid": true,
      "entity": [
        "surajit ch",
        4
      ],
      "score": 2,
      "match": "surauijt ch",
      "span": [
        100,
        111
      ]
    }
  ]
}

History

The authors of Faerie [1] released the binary for the code, which was written in C++. The first open-source version, called NEMEX, was originally written in Java by Günter Neumann and then maintained partly by Amir Moin at DFKI, Saarbrücken.

References

[1] Li, G., Deng, D., & Feng, J. (2011, June). Faerie: efficient filtering algorithms for approximate dictionary-based entity extraction. In Proceedings of the 2011 ACM SIGMOD International Conference on Management of data (pp. 529-540). ACM.

nemex's People

Contributors

suamin avatar

Stargazers

 avatar

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.