Fix textcorpus metadata

Fixes TextCorpus not having proper metadata info. I've defaulted to returning the line number that a document appears on.