We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to pass the parameters of json.dump when using the save_json method of EmbeddingQAFinetuneDataset object.
When the text contains Chinese characters, they are saved as Unicode characters in a JSON file and cannot be displayed properly as Chinese characters.
I can easily view the contents of JSON files.
code:
def save_json(self, path: str, **kwargs) -> None: """Save json.""" with open(path, "w") as f: json.dump(self.dict(), f, indent=4, **kwargs)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Description
I want to pass the parameters of json.dump when using the save_json method of EmbeddingQAFinetuneDataset object.
Reason
When the text contains Chinese characters, they are saved as Unicode characters in a JSON file and cannot be displayed properly as Chinese characters.
Value of Feature
I can easily view the contents of JSON files.
code:
The text was updated successfully, but these errors were encountered: