I'm looking to extract ids from the body of an email. The ids are similar to flight booking IDs. For example, in an email, I would like to obtain the booking reference (something like MNFF3RGC or MNF-F3RGC or MNFF/3RGC).
Those IDs can come in a great variety of formats and can have separators like "-/_" at different places. The IDs can contain slight formatting differences, so regular expressions are not the best solution as they would need to be updated every time an exception is detected.
I'm thinking of using something like word2vec to extract features of those tokens, and since I have a big set of valid tokens, train a classifier like SVM.
Is this a correct use of word2vec? The examples I'm seeing are related to document classification and not directly word classification. What could be a good approach to the token classification/extraction problem?
Maybe related to this question.