Imported from https://github.com/alexandrebarachant/bci-challenge-ner-2015