anhaidgroup / deepmatcher

Python package for performing Entity and Text Matching using Deep Learning.
BSD 3-Clause "New" or "Revised" License
565 stars 128 forks source link

ValueError: Attribute is not a left or a right table column, not a label or id and is not ignored. Not sure what it is... #81

Open ektaatomar opened 3 years ago

ektaatomar commented 3 years ago

Error while reading training and testing files.

train, validation, test = dm.data.process(path='/content', train='train.csv', validation='validation.csv', test='test.csv')

Data format- Train.csv, validation.csv and Test.csv

id left_id left_Name right_id right_Name label
0 0 3pl 0 3pl 1
1 1 becker logistics 1 3pl 1
ektaatomar commented 3 years ago

Well, I found out what was happening. Let me first explain the scenario. I started with my own dataset and created the train and test in the code by splitting data file . So when I wrote it back to csv's for train and test, the index was not set to false and because of that in the process.py file the header was getting a blank header value which throw everything off. But now that's fixed.