Skip to main content

Search and replace strings in full-text documents and add anchors

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 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 perform replacement of text.

Add anchors

In the highlight mode, it also allows you to add anchor to the search hit. If you do it through the regular modal to add anchors, you will add one anchor:

obrazek.png

If you want to go through hits one by one and add anchors to more of them, 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:

obrazek.png

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.