I have the following requirement: I get a list of words. These words come from table-like structures (they do not have table column headers). They are not well-formed sentences. Example input:
['th', 'March, 2018', 'LAST', 'COMMENT', '06-Mar', 'Gibraltar', 'Sea Helios',
'45,948', '52,719', 'N/A', 'UMS']
From the above list, I have to tag some words to their respective category. For example:
{
'06-Mar': 'date',
'Gibraltar': 'location',
'Sea Helios': 'name',
'45,948': 'weight'
}
In the input list, not every word may belong to a category. Some are just rubbish words. I have been looking at Word2Vec techniques, however, they all depend on sentences for training. Can this be done with classification/clustering? Any pointers on how I may be able to do this? The date formats are variable like 06-Mar
, 06-07/Mar
, etc. Other entities like name
and location
may be misspelled so a direct lookup from a hashmap is not possible.