You should implement outputSchema to:

1) Verify the input schema matches what you expect.  Basically it should be a bag where each tuple has a single string.
2) Return the schema for the bag.  

See PageRank for an example similar to what you'll need to do.