I got 5/20 in parse_data_from_file function
Failed test case: incorrect number of sentences when using a csv file with 5 examples.
Expected:
5,
but got:
2225.
Failed test case: incorrect number of labels when using a csv file with 5 examples.
Expected:
5,
but got:
2225.
Failed test case: incorrect set of labels when using a csv file with first 5 examples.
Expected:
[‘tech’, ‘business’, ‘sport’, ‘sport’, ‘entertainment’],
but got:
[‘tech’, ‘business’, ‘sport’, ‘sport’, ‘entertainment’, ‘politics’, ‘politics’, ‘sport’, ‘sport’, ‘entertainment’, ‘entertainment’, ‘business’, ‘business’, ‘politics’, ‘sport’, ‘business’, ‘politics’, ‘sport’, ‘business’, ‘tech’, ‘tech’, ‘tech’, ‘sport’, ‘sport’, ‘tech’, …].
Though my output matches the expected output. I can’t quite understand where I am actually doing the problem.