Skip to content
New issue

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

文本中含‘\n’解析页面换行,label显示不出来,并在尝试标注此文本label时会报错。 #51

Open
geminiyu233 opened this issue Dec 3, 2019 · 1 comment
Assignees
Labels
feature request need new feature

Comments

@geminiyu233
Copy link
Contributor

数据格式形如:
{
"content": "你好呀的你\n好呀的你好呀的你好呀的你好呀",
"labelCategories": [
{
"id": 0,
"text": "你好",
"color": "#eac0a2",
"borderColor": "#a38671"
}
],
"labels": [
{
"id": 0,
"categoryId": 0,
"startIndex": 4,
"endIndex": 8
}
],
"connectionCategories": [],
"connections": []
}

页面渲染“你好”的label并没有成功,并且在手动标注“你好”的时候,报错如下:
Error: Insert label across hard line is not supported now! Please remove the \n in content first!
什么时候能支持到呢?

@longfangsong longfangsong self-assigned this Dec 3, 2019
@longfangsong
Copy link
Collaborator

@geminiyu233
因为目前认为用户输入中的'\n'是“硬折行”,常代表自然段的结尾,而跨自然段对词的标注是一个比较少见的场景。
由于提供了编辑的功能,如果文本中的“软折行”(常因为编辑器宽度不够)被错误的当做了“硬折行”,只要删除这个'\n'即可。
未来会添加这个支持。
作者是大学生,平时没有时间保持更新,下次更新至少要等到寒假(1月份)。

@longfangsong longfangsong added the feature request need new feature label Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request need new feature
Projects
None yet
Development

No branches or pull requests

2 participants