Skip to content

Commit

Permalink
restore sentence offset to null
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamyang-liu committed Mar 6, 2021
1 parent 2164ae2 commit 4ac100a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ def get_document(collection, document):
real_dir = real_directory(directory)
doc_path = path_join(real_dir, document)
ori_response = _document_json_dict(doc_path)
del ori_response['sentence_offsets']
return ori_response

def get_document_with_sentence_offsets(collection, document):
Expand Down

0 comments on commit 4ac100a

Please sign in to comment.