Search and replace strings in full-text documents
The Annotator component in InkVisitor has in-built functionalities for:
- searching text;
- replacing text, e.g. for making corrections of full-texts;
- adding anchors sequentially, rather than one by one.
The search box enables Javascript regular expressions.
Search
Search is available in all three Annotator modes (highlight, text edit, and XML). It allows to check occurrences in context or jump to the right place in the text where you are currently working.
In the text edit mode, you can also perform replacement of text.
Add
Another anchorssection
In theexplains highlight mode, it also allows you to add anchor to the search hit. If you do it through the regular modalhow to add anchors, you will add one anchor:
If you want to go through hits one by one and add anchors tousing more of themsearch, deciding on each hit whether the anchor is appropriate, you can use the batch mode: in the header of the highlight mode , you can see a suggester field. If you add an entity here, you can use the anchor button to add anchor to the selected string and go to next hit:.
Because of inflection, regular expressions can come in handy when adding anchors in a batch, because you would like to add them to the different forms of a word or multi-word expression.