(1) Stop words are high-frequency words that are removed from the representation of
natural language data. Write a method deleteStopwords(input, stopwords) that
deletes a list of words stopwords from some text input. It is up to you whether your
method expects input to be a referring to the source of the text to be processed, or a
String or ArrayList of words; similarly, for the stopwords parameter. However, you
should try to optimise the data structure used. Your method should return an ArrayList
containing the non-stop words identified. Your method should work successfully with
the contents of the input file Input.txt and the stop words listed in the file
stopwords.txt (both files are available on Learning Central).
[15 marks]
(Functionality: 8, Design: 4, Ease of use: 2, Presentation: 1)
Comments
Leave a comment