making document usage thread-safe
minor
Merge branch 'wapiti' of https://github.com/kermitt2/grobid into wapiti