I know this will sound a bit silly, but I'd like to know the document a certain chunk belongs to. I know that to get a chunk I must have got it but in my code, the document is actually not exposed in my scope.
I'm doing something like:
chunk = get_chunk_from_file(filename, chunk_type)
...
do some other stuff
...
It turns out that now I actually need a reference fo the Docuoment.
Any clues on this?