Modify document extractor to extract only 3 tuples