Showing posts with label data cleaning. Show all posts
Showing posts with label data cleaning. Show all posts

Mar 11, 2017

Patent Research Training > Data Cleaning > Assignee (Player / Company Name) Cleaning & Normalization

Meaningful data visualisation and insight generation requires clean data. What we mean by clean data is normalised or sanitised data - data that follows a certain rule to be uniform, so as to be comparable. Only uniform things are comparable and normalisation or sanitization of data is an important part of patent research because of the inherent inconsistencies of some data points.

One of the major data points of patents that need this 'cleaning' (in other words normalisation) is company (or institutes, universities, labs, etc.) names. These are called assignee/applicant names in patentese (patent language).




Assignee/applicant cleaning has many methods in terms of choosing the right assignee name - that is not something we will be discussing in this post. We will focus on learning how to use one open source tool (a very powerful one) for assignee cleaning - Open Refine (formerly known as Google Refine).

So in essence, this article will help you get started with using open refine for cleaning data in the assignee/applicant column with company/university names but not really delve into which name to choose and other aspects (I may cover them in a separate article later).

Steps:
  1. Install Open Refine on your PC (It's open source, and hence its free for use) - >>
  2. Get patent data and try the Open Refine software for assignee cleaning - >>

Patent Research Training > Data Cleaning > Assignee (Player / Company Name) Cleaning & Normalization - II

Open Refine is a really powerful tool for dealing with data, especially for normalizing data and cleaning it.

Following steps can be followed to install Open Refine and get it running on your system:

1. Go to http://openrefine.org/download.html

2. Find the latest download option for windows (or mac - though this article will focus on Windows). Right now, this is 'OpenRefine 2.7-rc2 Release Candidate 2'



You just have to download the zip file and unzip it.



Once unzipped into a folder of your choice, click on the icon with a diamond (too easy to recognize :))


You will get a black screen (command prompt) and it will open a browser tab









Voila! you have successfully installed and started the Open Refine software, and now you can upload your files.
Notice the address of this tab - it is not a web address, but rather your own computer - so it's essentially OK to upload any files from your computer on this address, because the files wouldn't be uploaded on any website. You can still use your discretion, though.



Patent Research Training > Data Cleaning > Assignee (Player / Company Name) Cleaning & Normalization - III


1. Create Project

Once you have your data excel sheet ready, you can go to the starting page of Open Refine and upload it. You should see something like this after you upload your sheet:




I used an excel result from espacenet; however, any format will be good for this.

For now, do not vary any options, just click on Create Project.

2. Selection of Text Facets

Once you create the project, you should see a screen like the one shown below where you can select the options I have highlighted





3. Cluster - Text Facets

Once you select the highlighted options, you should see something like this:


4. Merging the cluster suggestions

Open Refine gives multiple options to find similar looking text entries that can be normalized. All of these are essentially algorithms (but you don't need to look them up in detail, unless you want to)

The first option will be Method - 'key collision' based on Keying Function - 'fingerprint'


See the first cluster values: These are two variations of writing the same company name. We have successfully identified this anomaly - now select the Merge? option and click on 'Merge Selected & Re-Cluster' button at the bottom.

Once you don't see any options after re-clustering, simply select another Keying function at the top:



See the first and the fourth cluster suggestions using the 'metaphone3' keying function.

Once you have tried other keying functions in the 'key collision' method, try the other method instead of 'key collision' as well - which is 'nearest neighbor'


Again, we find similar looking names that might be typo errors. (we get a lot of these in patent data now, don't we?)

After checking all methods and merging the ones you think are correct, you can click on close and then export the sheet for further use.


The exported excel (or CSV, if you like) will have the Applicant(s) column modified according to the changes you have made using the Merge Selected option.

Give this a try and let me know in the comments if you face any issues.

Overall, keep exploring Open Refine, and discover its other functions. There are lots of them!