forTEXT / catma

Computer Assisted Text Markup and Analysis
https://www.catma.de
GNU General Public License v3.0
87 stars 8 forks source link

Splitting and merging tags #319

Open danbalogh opened 1 year ago

danbalogh commented 1 year ago

In addition to the existing requests for the facility to reorganise the tag hierarchy, I would be happy to see the following functionality in CATMA:

  1. Merging tags. At least a full merge: retag all instances of Tag A with Tag B, retaining whatever attributes and values were present, and adding those attributes to the repertoire of Tag B of not already present. Possibly, also selective merge: retag instances of Tag A on the basis of a criterion (e.g. property presence, property value, query string presence) with Tag B, while retaining attributes as above.
  2. Splitting tags. At least a manual option: return all instances of Tag A, offer a checklist to manually retag some of them with Tag B while retaining attributes as above. On the long term, preferably: selective retagging on the basis of criteria.

These can at present be achieved by querying specific tags and annotating the occurrences with new tags, then removing the original annotation, but this is rather slow, and if there are properties involved, then the procedure needs to be repeated for every property/value combination that I want to retain on the new tag.