Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2869 - Hugging Face Recommender Prototype #2870

Merged
merged 20 commits into from Jun 1, 2022

Conversation

reckart
Copy link
Member

@reckart reckart commented Feb 23, 2022

What's in the PR

  • UI for entering an API key and for choosing a model with an auto-complete field that queries the hub
  • Very basic support for token classification tasks
  • Guarded by feature flag

How to test manually

  • Enable feature flag recommender.hf.enabled=true in settings.properties
  • Can be tried with a free-tier Hugging Face account
  • Try with a very small document - mind that the full document is sent to hugging face

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

- UI for entering an API key and for choosing a model with an auto-complete field that queries the hub
- Very basic support for token classification tasks
- Guarded by feature flag
@reckart reckart added this to the 23.0 milestone Feb 23, 2022
@reckart reckart self-assigned this Feb 23, 2022
@reckart reckart added this to 🏃‍♀️ In progress in Kanban via automation Feb 23, 2022
- Remove unnecessary dependencies
* main:
  #2846 - Trim down PDF editor code
  Bump urijs in /inception/inception-pdf-editor/src/main/js/pdfanno
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view:
  #2872 - Allow calling a recommender for the current view
- Adjust for ability to perform partial predictions
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view:
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2781 - Upgrade dependencies (23.0)
  #2411 - Possibility to reopen documents of an annotator in the curation
  #898 - Annotators should be able to reopen a finished document
  #898 - Annotators should be able to reopen a finished document
  #898 - Annotators should be able to reopen a finished document
  #898 - Annotators should be able to reopen a finished document
  No issue. Update package-lock.json
  No issue. Add tooltip to the progress bullets in the recommender sidebar.
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
- Remove unused dependency
@reckart reckart modified the milestones: 23.0, 24.0 Mar 7, 2022
* main: (31 commits)
  No issue. Set version to 24.0-SNAPSHOT
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.0-rc-1
  #2885 - Document java options e.g. for increasing memory limit
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2872 - Allow calling a recommender for the current view
  #2893 - Annotators dropdown in dynamic workload management broken
  #2893 - Annotators dropdown in dynamic workload management broken
  #2891 - Predictions are not cleared after deleting the last annotation
  #2875 - Excessive loading times in curation mode
  #2893 - Annotators dropdown in dynamic workload management broken
  #2893 - Annotators dropdown in dynamic workload management broken
  #2875 - Excessive loading times in curation mode
  #2875 - Excessive loading times in curation mode
  #2875 - Excessive loading times in curation mode
  #2891 - Predictions are not cleared after deleting the last annotation
  #1518 - Document where the settings.properties file lives
  #1518 - Document where the settings.properties file lives
  ...

% Conflicts:
%	inception/inception-recommendation-api/src/main/java/de/tudarmstadt/ukp/inception/recommendation/api/recommender/RecommendationEngine.java
%	inception/inception-recommendation/src/main/java/de/tudarmstadt/ukp/inception/recommendation/sidebar/RecommendationSidebar.java
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view: (29 commits)
  #2915 - Sentence layer should not be selectable as recommender target
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.0-rc-2
  #2912 - Upgrade dependencies
  #2393 - Remove outdated project fixings
  #2833 - Enhance (external) editors API
  No issue. Fix typo in documentation.
  Bump minimist in /inception/inception-pdf-editor/src/main/js/pdfanno
  #2908 - Allow loading only annotations - no text - via DIAM
  #2393 - Remove outdated project fixings
  #2908 - Allow loading only annotations - no text - via DIAM
  #2908 - Allow loading only annotations - no text - via DIAM
  #2393 - Remove outdated project fixings
  #2908 - Allow loading only annotations - no text - via DIAM
  #2908 - Allow loading only annotations - no text - via DIAM
  #2906 - Allow partial rendering via DIAM AJAX
  #2902 - Auto-complete for string features with tagsets not working
  #2899 - Cannot choose HTML (AnnotatorJS) view
  #2898 - Update DB version in Docker Compose example
  #2898 - Update DB version in Docker Compose example
  ...
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view:
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.0
  #2931 - Use Maven properties to control some JS dependencies
  No issue. Update some JS dependencies.
  #2781 - Upgrade dependencies
  #2781 - Upgrade dependencies
  No issue. Improve error message when loading annotations via DIAM.
  #2924 - Filling in slots via DIAM-based editors does not work
  #2922 - Send text markers via DIAM compact format
  #2920 - Send annotation markers via DIAM compact format
  #2918 - Allow deleting an annotation via DIAM
  #2833 - Enhance (external) editors API
  #2781 - Upgrade dependencies (23.0)
  #2781 - Upgrade dependencies (23.0)
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view: (62 commits)
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #1778 - Make tokenization editable
  #2987 - Error when pressing "add" when no user is selected
  #2912 - Upgrade dependencies (24.0)
  #2912 - Upgrade dependencies (24.0)
  #2983 - Upgrade dependencies (23.2)
  #2942 - Multi-value concept feature
  #2942 - Multi-value concept feature
  #2942 - Multi-value concept feature
  #2942 - Multi-value concept feature
  ...
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view: (74 commits)
  #3000 - Schema-validation: missing table [annotation_document]
  #3026 - Facilitate running behind reverse proxy
  #3024 - Upgrade dependencies (23.4)
  #3022 - Cannot access AERO swagger UI
  #3019 - Telemetry tri-state checkbox broken
  #3019 - Telemetry tri-state checkbox broken
  #3019 - Telemetry tri-state checkbox broken
  #3013 - Application does not start when websocket support is disabled
  #3013 - Application does not start when websocket support is disabled
  #3013 - Application does not start when websocket support is disabled
  #3000 - Schema-validation: missing table [annotation_document]
  #2912 - Upgrade dependencies
  #3003 - Clean up PDF editor code
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.3
  #3003 - Clean up PDF editor code
  #3003 - Clean up PDF editor code
  #3003 - Clean up PDF editor code
  #3003 - Clean up PDF editor code
  #3003 - Clean up PDF editor code
  ...
- Added missing dependency
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view:
  #3029 - Quick project initializer for document labelling tasks
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.4
  #3031 - setFeatureValue logic should be directly in feature supports
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3029 - Quick project initializer for document labelling tasks
  #3003 - Clean up PDF editor code
  #3003 - Clean up PDF editor code

% Conflicts:
%	inception/inception-app-webapp/pom.xml
…t-view' into feature/2869-Hugging-Face-Recommender-Prototype

* feature/2872-Allow-calling-a-recommender-for-the-current-view: (71 commits)
  #3079 - Remove UrlParametersReceivingBehavior if possible
  #3079 - Remove UrlParametersReceivingBehavior if possible
  #2881 - Document Deletion not working
  #2881 - Document Deletion not working
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  #3084 - Improve project service
  No issue. Avoid error if a cross-layer annotation bulk event is triggered.
  [maven-release-plugin] prepare for next development iteration
  [maven-release-plugin] prepare release inception-23.6
  No issue. Change assert.
  #3080 - Token "morph" feature has wrong type
  ...

% Conflicts:
%	inception/installEclipseSettings.sh
@reckart reckart merged commit cc16c7a into main Jun 1, 2022
@reckart reckart deleted the feature/2869-Hugging-Face-Recommender-Prototype branch June 1, 2022 20:08
Kanban automation moved this from 🏃‍♀️ In progress to 🍹 Done Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Kanban
  
🍹 Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant