Description: I added context analysis to the previous heuristic method to go up the DOM tree if a clickable element itself doesn't contain any ranked attributes. I also added KeyBERT and a simple action word in case of labels produced without verbs.
Type of Change
[ ] Bug fix (non-breaking change that fixes an issue)
[☑️ ] New feature (non-breaking change that adds functionality)
[ ] Refactoring (non-breaking code restructuring that preserves functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Build-related update (CI workflow, test cases)
[ ] Documentation update
[ ] Other (please describe):
How Has This Been Tested?
I have modified the previous test class to account for the new functionality. It can be run using the command nosetests test/ui/heuristic_labels_test
Checklist
[ ☑️] My code follows the style guidelines of this project
[☑️ ] I have performed a self-review of my own code
[ ☑️] I have commented my code, particularly in hard-to-understand areas
[☑️ ] I have made corresponding changes to the documentation
[☑️ ] I have added tests that prove my fix is effective or that my feature works
[ ☑️] New and existing tests pass locally with my changes
[ ☑️] Any dependent changes have been merged and published in downstream modules
Added context analysis
Description: I added context analysis to the previous heuristic method to go up the DOM tree if a clickable element itself doesn't contain any ranked attributes. I also added KeyBERT and a simple action word in case of labels produced without verbs.
Type of Change
How Has This Been Tested?
I have modified the previous test class to account for the new functionality. It can be run using the command nosetests test/ui/heuristic_labels_test
Checklist