-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
annotate.py: Change
file_purpose
to file_data
in line callback
The LineCallback type now uses the `dict[str, str]` and not `str` as the type of its first parameter; the line callback is passed file_data, not just file_purpose as its first argument (positional argument). This change allows to modify code of hapybug_line_callback_func.py to match what the code to create initial automatic annotations for the annotation tasks in the HaPy-Bug dataset does. Renames `file_purpose` to `file_data`, and use `file_data["purpose"]` in place where there was `file_purpose` previously. Test passes, manual checking with the help of test and debug-print statements suggests that it should work as intended.
- Loading branch information
Showing
4 changed files
with
19 additions
and
16 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