In a recent blog post Named Entity Classification by Themis Mavridis from booking.com, Learn2search (aka. Vowpal Wabbit) was stated as ‘by far the best model’ and ‘by far the less demanding’ of training resources in terms of doing NER.
As explained by the author, the major reason of these advantages is because of that
L2S treats the problem as a sequential decision making process.
Therefore, we would like to give a try.
Installation
Officially, learn2search is called Vowpal Wabbit. The VW official site provides a detailed installation guidance.
On macOS, we can use brew
to install VW:
Some dependencies may be required if not installed beforehand:
Problem
However, this simple guidance did not work with my environment.
Then, I used the manual installation approach, it still did not work with Python 3.5 or 3.6; however, strangely, when I switched to Python 2.7.13, it can be installed.
Soon, I posted an issue on the official website, and got the help from the authors.
Solution
The solution is fairly simple: just changing the Makefile in the python directory of VW:
to ->
Finally, VW can run on my machine.
Final thoughts
We will give a shot of VW on our NER task, so stay tuned.