Skip to content

Importing a CSV file with Chinese column headers will cause the labeling text parsing error. #7168

@CraigMChen

Description

@CraigMChen

Describe the bug
Here is a test csv with Chinese column headers:

第一列,第二列,第三列
a1,b1,c1
a2,b2,c2
a3,b3,c3

Import the csv file and select the text classification template as project lable config.

In Labeling Interface page, UI preview cannot load the example text correctly; instead, it mistakenly treats the $第一列 as a string.

Image

The same goes for the Labeling page.

Image

To Reproduce
Steps to reproduce the behavior:

  1. Create a project.
  2. Import a csv file with Chinese column headers.
  3. Select a text template for the project.
  4. Go to labeling page.
  5. All labeling text is a same string like $第一列.

Expected behavior
The displayed text should be the text in the corresponding row of the specified column in the csv file.

Environment (please complete the following information):

  • OS: Ubuntu
  • Label Studio Version 1.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions