apmoore1 / target-extraction

Target based extraction
https://apmoore1.github.io/target-extraction/
Apache License 2.0
4 stars 1 forks source link

Combining data based on target id #10

Closed apmoore1 closed 4 years ago

apmoore1 commented 4 years ago

Once the unique TargetText ID's have been added it would be good to be able to combine information from two TargetTextCollections based on the target id e.g. predictions.

This function should be added within the TargetTextCollection and the function should accept the following arguments:

  1. another collection
  2. the key to match data on e.g. unique target id
  3. the keys of data that should be added
  4. raise error if the data will be overwriting any existing data.
apmoore1 commented 4 years ago

Fixed with the following commit