-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize schema construction for UIE Task (#2170)
- remove import but unused os lib - use `_schema_tree` attribute to displace multiple times of schema tree construction - remove `schema_tree` arg in `_multi_stage_predict` - add early check & return in `_multi_stage_predict` - rename `id` var in `_multi_stage_predict` to `idx` to avoid mixing with python built-in funcs - change `_build_tree` func to python `classmethod` Co-authored-by: Linjie Chen <40840292+linjieccc@users.noreply.github.com>
- Loading branch information
Showing
1 changed file
with
34 additions
and
24 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