From 358c82595c31288a563470b0f2c55fbe570bbfd1 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Oct 2015 14:18:45 +1100 Subject: [PATCH] * Fix NAMES list in spacy/parts_of_speech.pyx --- spacy/parts_of_speech.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/parts_of_speech.pyx b/spacy/parts_of_speech.pyx index 14933480c..006a1f006 100644 --- a/spacy/parts_of_speech.pyx +++ b/spacy/parts_of_speech.pyx @@ -25,4 +25,4 @@ IDS = { } -NAMES = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])] +NAMES = {value: key for key, value in IDS.items()}