Skip to content

Conversation

@46319943
Copy link
Contributor

@46319943 46319943 commented Mar 26, 2023

PR types

Bug fixes

PR changes

Others. Helper function for convering the format of label-studio to doccano.

Description

Fix json file reading error.

  • Only json line format was accpted, which is not the default export option in labelstudio, making error for directly output json or formatted json file. The reading procedure was fixed to adapt both the json line format and detended format.

Add support for setting default value for missing relation type, which is allowed in label-studio but not the case in doccano.

  • Some relation type could be emply list imported from label-studio. Add default relation type.

Fix default output filename suffix.
Fix json file reading.
Add support for setting default value for missing relation type.
@paddle-bot
Copy link

paddle-bot bot commented Mar 26, 2023

Thanks for your contribution!

@codecov
Copy link

codecov bot commented Mar 26, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.42%. Comparing base (e72fb98) to head (05cf318).
Report is 1266 commits behind head on develop.

❗ Current head 05cf318 differs from pull request most recent head 3645def. Consider uploading reports for the commit 3645def to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5422      +/-   ##
===========================================
+ Coverage    54.49%   59.42%   +4.93%     
===========================================
  Files          481      482       +1     
  Lines        68060    68103      +43     
===========================================
+ Hits         37092    40473    +3381     
+ Misses       30968    27630    -3338     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shenhu365
Copy link

可以再提供一下doccano导出数据转换为Label Studio格式的代码吗?

@46319943
Copy link
Contributor Author

可以再提供一下doccano导出数据转换为Label Studio格式的代码吗?

可以在PaddleNLP下面提一个新的Issue

Add support for specifying text column.
@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions
Copy link

github-actions bot commented May 8, 2024

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label May 8, 2024
@46319943
Copy link
Contributor Author

46319943 commented May 8, 2024

@wawltor @sijunhe 请问能查看、通过一下吗?

@github-actions github-actions bot removed the stale label May 9, 2024
@github-actions
Copy link

github-actions bot commented Jul 8, 2024

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Jul 8, 2024
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions github-actions bot removed the stale label Oct 16, 2024
@github-actions
Copy link

This Pull Request is stale because it has been open for 60 days with no activity. 当前Pull Request 60天内无活动,被标记为stale。

@github-actions github-actions bot added the stale label Dec 16, 2024
@paddle-bot paddle-bot bot closed this Dec 23, 2025
@paddle-bot
Copy link

paddle-bot bot commented Dec 23, 2025

Automatically closed by Paddle-bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants