Skip to content

cascip/EntityMatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EntityMatcher

EntityMatcher is a Python package including implementations of multiple deep entity matching models proposed by our group. The current version only contains the HierMatcher model proposed in IJCAI-2020 paper "Hierarchical Matching Network for Heterogeneous Entity Resolution". More models (MPM, Seq2SeqMatcher, ect.) will be available later.

EntityMatcher is built on the framework of DeepMatcher, which is an easily customizable deep entity matching package.

Environment Setting

  • Python 3.6
  • scikit-learn 0.22.2
  • deepmatcher 0.1.1

Datasets

There are ten datasets of three types in the “data/” directory of this project:

  1. Four pubic homogeneous datasets, which are originally obtained from here.
    Walmart-Amazon1: "data/walmart_amazon"
    Amazon-Google: "data/amazon_google"
    DBLP-ACM1: "data/dblp_acm"
    DBLP-Scholar1: "data/dblp_scholar"

  2. Three public dirty datasets, which are originally obtained from here.
    Walmart-Amazon2: "data/dirty_walmart_amazon"
    DBLP-ACM2: "data/dirty_dblp_acm"
    DBLP-Scholar2: "data/dirty_dblp_scholar"

  3. Three heterogeneous datasets, which are derived from Walmart-Amazon1 using different attribute merging operations (see more details from here).
    Walmart-Amazon3: "data/walmart_amazon_3"
    Walmart-Amazon4: "data/walmart_amazon_4"
    Walmart-Amazon5: "data/walmart_amazon_5"

All of the above datasets have been processed according to the input data format of DeepMatcher, thus can be directly used.

Embedding file

Download fastText model file trained on English Wikipedia from here. Then unzip it and copy the file named "wiki.en.bin" to the “embedding/” directory of this project.

Quick start

Run experiments on specified dataset and model:

    python run.py -m <model_name>  -d <dataset_dir>  -e <embedding_dir> 

For example, to run an experiment on Walmart-Amazon with HierMatcher model, use:

    python run.py -m "HierMatcher" -d "data/walmart_amazon/" -e "embedding"

Citation

Please cite our work if you like or are using our codes for your projects:

Cheng Fu, Xianpei Han, Jiaming He and Le Sun, Hierarchical Matching Network for Heterogeneous Entity Resolution. IJCAI 2020: 3665-3671

The Team

EntityMatcher is developed by Chinese Information Processing Laboratory (CIP), Institute of Software , Chinese Academy of Science.
If you have any problem in running the code, please email to [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages