Giter Club home page Giter Club logo

entityfingerprint's Introduction

Creates a fingerprint for the given entity name. It supports special character, emojis (because we all know that emoji's in company names are coming), and entity types in other non-latin scripts.

Examples

  iex(1)> EntityFingerprint.create("ФИЛИАЛ КОМПАНИИ С ОГРАНИЧЕННОЙ")

  {:ok,
  [
    fingerprint: "filial kompanii ogranichennoy s",
    original: "ФИЛИАЛ КОМПАНИИ С ОГРАНИЧЕННОЙ",
    script: "cyrillic"
  ]}

  iex(2)> EntityFingerprint.create("ООО КУРЬЕР-РЕГИОН СТОЛИЦА")

  {:ok,
  [
    fingerprint: "kurerregion ooo stolitsa",
    original: "ООО КУРЬЕР-РЕГИОН СТОЛИЦА",
    script: "cyrillic"
  ]}

  iex(3)> EntityFingerprint.create("Google Limited Liability Company")

  {:ok,
  [
    fingerprint: "google llc",
    original: "Google Limited Liability Company",
    script: "latin"
  ]}

  iex(4)> EntityFingerprint.create("현대해상화재보험")

  {:ok,
  [
    fingerprint: "hyeondaehaesanghwajaeboheom",
    original: "현대해상화재보험",
    script: "hangul"
  ]}

  iex(5)> EntityFingerprint.create(" 💩 Limited Liability Company")

  {:ok,
  [
    fingerprint: "llc poop",
    original: " 💩 Limited Liability Company",
    script: "common"
  ]}

  iex(6)> EntityFingerprint.create("佐贤鸣智(上海)企业管理咨询有限公司")
  {:ok,
  [
    fingerprint: "guanlizixun shanghai zuoxianmingzhi",
    original: "佐贤鸣智(上海)企业管理咨询有限公司",
    script: "han"
  ]}

  iex(7)> EntityFingerprint.create("Siemens Aktiengesellschaft")
  {:ok,
  [
    fingerprint: "ag siemens",
    original: "Siemens Aktiengesellschaft",
    script: "latin"
  ]}

  iex(8)> EntityFingerprint.create("New York, New York")
  {:ok,
  [fingerprint: "new york", original: "New York, New York", script: "latin"]}

Thanks

This library was heavily inspired by the python tool alephdata/fingerprints

See also

  • Clustering in Depth, part of the OpenRefine documentation discussing how to create collisions in data clustering.

entityfingerprint's People

Contributors

nix2intel avatar

Stargazers

Austin Ziegler avatar Ed Wildgoose avatar Niranjan Anandkumar avatar Ahsan Nabi Dar avatar James Chen avatar

Watchers

 avatar

Forkers

jameschen79

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.