[ https://issues.apache.org/jira/browse/UIMA-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538541#comment-14538541 ]
James Zhu commented on UIMA-3374: --------------------------------- Hi, Marshall: Excellent question! The removal of the original line 495 is tied to the bullet #9 in my summary above. Here is a more detailed explanation. The current behavior is, when user clicks on the text panel, the listener will check if we are using annotations mode. If it is not in annotations mode, it does not do anything. If in annotations mode, it will take the mouse click position and find out what annotations objects fall under the mouse click. Then for those annotation objects, we inspect their types, and see if their types' corresponding checkboxes are checked. If so, such annotation objects will be shown on the tree view panel on the right. All these are in the updateSelectedAnnotationTree() method. Now, what happens if we are in entities view mode (or the new "features" mode) when user clicks on the text panel? We should be able to do something very similar, i.e., find out the annotations that fall under the mouse click, resolve their corresponding entities, and see if their corresponding checkboxes are checked. If so, such annotation objects will be shown on the tree view panel on the right. This part was not implemented so I believe that's why it was turned off by adding the check on line 495. I added the implementation in and introduced an isMatch() method to check if an annotation that falls under the mouse click should be added to the tree view panel under different view modes. It currently supports both the annotations view mode and entities view mode. I will improve it to support the new "features" mode as well. If you have trouble following any of the explanation above, please let me know. We can even set up a conference call if necessary. Thanks! > A new mode for annotation viewer based on feature values > -------------------------------------------------------- > > Key: UIMA-3374 > URL: https://issues.apache.org/jira/browse/UIMA-3374 > Project: UIMA > Issue Type: Improvement > Components: InternalTools > Affects Versions: 2.5.0SDK > Reporter: James Zhu > Assignee: Marshall Schor > Priority: Minor > Labels: annotation, feature, filter, type, value, viewer > Attachments: UIMA-3374 patch 2015-04-21.txt, UIMA-3374 patch > 2015-04-23.txt, UIMA-3374 patch 2015-04-28.txt, UIMA-3374 patch > 2015-05-08.txt, screenshot-1.jpg, screenshot-2.jpg, screenshot-3.jpg, > screenshot-4.jpg > > Original Estimate: 504h > Remaining Estimate: 504h > > I'd like to propose adding a new "view mode" in the UIMA Annotation Viewer so > that user can pick a specific type of annotations, and then pick a specific > feature, and pick specific feature values available so user can see a subset > of those annotation objects that have the specific feature values. -- This message was sent by Atlassian JIRA (v6.3.4#6332)