Hi,
I tried to report this using the error reporting tool, but it’s broken and does not allow selecting which step is failing so I’m posting this here.
Correct me if I’m wrong, but when grading, the index and value is listed in reverse order which shows up as an error. I don’t know how this could switched around as it appears to be the way Python outputs this content.
See below:
Failed test case: incorrect label_word_index when using labels: ['tech', 'tech', 'entertainment', 'sport', 'business'].
Expected:
{'tech': 1, 'entertainment': 2, 'sport': 3, 'business': 4},
but got:
{1: 'tech', 2: 'entertainment', 3: 'sport', 4: 'business'}.