-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve false-positive Title elements on Chinese text (#3836)
**Summary** Improve element-type mapping for Chinese text. Fixes bug where Chinese text would produce large numbers of false-positive `Title` elements. Fixes #3084 --------- Co-authored-by: scanny <[email protected]> Co-authored-by: ryannikolaidis <[email protected]>
- Loading branch information
1 parent
9a9bf4c
commit 9ece0b5
Showing
15 changed files
with
856 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[ | ||
{ | ||
"type": "Title", | ||
"type": "UncategorizedText", | ||
"element_id": "56d531394823d81787d77a04462ed096", | ||
"text": "Lorem ipsum dolor sit amet.", | ||
"metadata": { | ||
|
@@ -17,6 +17,13 @@ | |
"date_created": "1686809759.687", | ||
"date_modified": "1686809743.0", | ||
"permissions_data": [ | ||
{ | ||
"id": "anyoneWithLink", | ||
"type": "anyone", | ||
"kind": "drive#permission", | ||
"role": "reader", | ||
"allowFileDiscovery": false | ||
}, | ||
{ | ||
"id": "18298851591250030956", | ||
"displayName": "[email protected]", | ||
|
@@ -29,31 +36,24 @@ | |
"pendingOwner": false | ||
}, | ||
{ | ||
"id": "09147371668407854156", | ||
"displayName": "roman", | ||
"id": "04774006893477068632", | ||
"displayName": "ryan", | ||
"type": "user", | ||
"kind": "drive#permission", | ||
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjWoGrFCgXcF6CtiBIBLnAfM68qUnQaJOcgvg3qzfQ3W8Ch6dA=s64", | ||
"emailAddress": "roman@unstructured.io", | ||
"role": "writer", | ||
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjXeWpu7QcZuYqIl3p1mwqzS8XGFJ4RqA3Xjljfkm1DcFZ9M7A=s64", | ||
"emailAddress": "ryan@unstructured.io", | ||
"role": "owner", | ||
"deleted": false, | ||
"pendingOwner": false | ||
}, | ||
{ | ||
"id": "anyoneWithLink", | ||
"type": "anyone", | ||
"kind": "drive#permission", | ||
"role": "reader", | ||
"allowFileDiscovery": false | ||
}, | ||
{ | ||
"id": "04774006893477068632", | ||
"displayName": "ryan", | ||
"id": "09147371668407854156", | ||
"displayName": "roman", | ||
"type": "user", | ||
"kind": "drive#permission", | ||
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjXeWpu7QcZuYqIl3p1mwqzS8XGFJ4RqA3Xjljfkm1DcFZ9M7A=s64", | ||
"emailAddress": "ryan@unstructured.io", | ||
"role": "owner", | ||
"photoLink": "https://lh3.googleusercontent.com/a-/ALV-UjWoGrFCgXcF6CtiBIBLnAfM68qUnQaJOcgvg3qzfQ3W8Ch6dA=s64", | ||
"emailAddress": "roman@unstructured.io", | ||
"role": "writer", | ||
"deleted": false, | ||
"pendingOwner": false | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[ | ||
{ | ||
"type": "Title", | ||
"type": "UncategorizedText", | ||
"element_id": "56d531394823d81787d77a04462ed096", | ||
"text": "Lorem ipsum dolor sit amet.", | ||
"metadata": { | ||
|
@@ -17,6 +17,13 @@ | |
"date_created": "1718722775.76", | ||
"date_modified": "1718722788.018", | ||
"permissions_data": [ | ||
{ | ||
"id": "anyoneWithLink", | ||
"type": "anyone", | ||
"kind": "drive#permission", | ||
"role": "reader", | ||
"allowFileDiscovery": false | ||
}, | ||
{ | ||
"id": "18298851591250030956", | ||
"displayName": "[email protected]", | ||
|
@@ -39,13 +46,6 @@ | |
"deleted": false, | ||
"pendingOwner": false | ||
}, | ||
{ | ||
"id": "anyoneWithLink", | ||
"type": "anyone", | ||
"kind": "drive#permission", | ||
"role": "reader", | ||
"allowFileDiscovery": false | ||
}, | ||
{ | ||
"id": "09147371668407854156", | ||
"displayName": "roman", | ||
|
Oops, something went wrong.