Entity Mention Detection Algorithm