Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D DeepPavlov
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DeepPavlov
  • DeepPavlov
  • Merge requests
  • !1141

Small fix to correct encoding problem

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Andrei Glinskii requested to merge github/fork/Eugen2525/small_fix into dev Mar 03, 2020
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: Eugen2525

I have added an option to provide an encoding to the dstc2_ready.py

Otherwise, I am getting an error like below:

File "C:\Users\..\AppData\Local\Programs\Python\Python37\lib\site-packages\deeppavlov\dataset_readers\dstc2_reader.py", line 293, in _read_from_file cls._get_turns(json.load(open(file_path, 'rt')), with_indices=True) File "C:\Users\..\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 293, in load return loads(fp.read(), UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 51: illegal multibyte sequence

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Eugen2525/small_fix