Find the five most frequent words of a speech (lowercased, letters only, stopwords from a file excluded) and…
Find the five most frequent words of a speech (lowercased, letters only, stopwords from a file excluded) and…: a task in agent-harbor-tasks (Harbor dataset). What are the 5 most frequent words in speech.txt? Ignore case, count only letters (split on anything else, so "children's" gives "children"…
The task
What are the 5 most frequent words in speech.txt? Ignore case, count only letters (split on anything else, so "children's" gives "children" and "s"), and skip the words in stopwords.txt. Write them to top5.txt as `word count`, most frequent first.
Part of efederici/agent-harbor-tasks.