Fixes TextCorpus not having proper metadata info (rebased)

I've defaulted to returning the line number that a document appears on