Imported from https://github.com/HLTCHKUST/MoEL