KennethEnevoldsen / augmenty

Augmenty is an augmentation library based on spaCy for augmenting texts.
https://kennethenevoldsen.github.io/augmenty/
MIT License
151 stars 11 forks source link

Keep span annotations when augmenting entities #201

Closed KennethEnevoldsen closed 1 year ago

KennethEnevoldsen commented 1 year ago

Fixes #185

github-actions[bot] commented 1 year ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty
   __init__.py220100% 
   augment_utilities.py36197%49
   keyboard.py41198%40
   util.py41198%71
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/character
   __init__.py50100% 
   casing.py200100% 
   replace.py340100% 
   spacing.py200100% 
   swap.py210100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/doc
   __init__.py30100% 
   casing.py270100% 
   subset.py44589%30, 49, 53, 55, 61
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang
   __init__.py170100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/da
   __init__.py30100% 
   augmenters.py170100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/de
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/el
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/en
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/es
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/fr
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/hu
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/it
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/lt
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/mk
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/nb
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/nl
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/pl
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/pt
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/ro
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/lang/ru
   __init__.py10100% 
   keyboard.py50100% 
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/span
   __init__.py30100% 
   entities.py1501093%35, 53–61, 364
   utils.py15380%20, 31, 37
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/augmenty/token
   __init__.py90100% 
   casing.py42198%111
   insert.py103694%36, 53–54, 198, 265, 283
   replace.py103694%36, 201, 205, 241, 287, 301
   spacing.py390100% 
   static_embedding_util.py35197%67
   swap.py62494%50, 80, 91, 104
   wordnet_util.py10370%7–9
TOTAL10174296%