Fixes TextCorpus not having proper metadata info (rebased)

I've defaulted to returning the line number that a document appears on
This will fail (raise exception) for empty inputs. What is the purpose of this change?