Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Datastore Generics & AudioAnnotation#800

Merged
mylibrar merged 26 commits intoasyml:masterfrom
hepengfe:datastore_generics
May 26, 2022
Merged

Datastore Generics & AudioAnnotation#800
mylibrar merged 26 commits intoasyml:masterfrom
hepengfe:datastore_generics

Conversation

@hepengfe
Copy link
Collaborator

@hepengfe hepengfe commented May 23, 2022

This PR fixes #773 and #772

Description of changes

  • Add operations for generics and AudioAnnotation in Datastore

Possible influences of this PR.

Describe what are the possible side-effects of the code change.

Test Conducted

Describe what test cases are included for the PR.

@hepengfe hepengfe self-assigned this May 23, 2022
@mylibrar mylibrar added this to the 0.3 alpha milestone May 23, 2022
@codecov
Copy link

codecov bot commented May 24, 2022

Codecov Report

Merging #800 (bb16add) into master (8af7f5a) will increase coverage by 0.02%.
The diff coverage is 89.09%.

@@            Coverage Diff             @@
##           master     #800      +/-   ##
==========================================
+ Coverage   81.17%   81.20%   +0.02%     
==========================================
  Files         249      249              
  Lines       18868    18914      +46     
==========================================
+ Hits        15316    15359      +43     
- Misses       3552     3555       +3     
Impacted Files Coverage Δ
forte/data/data_store.py 90.66% <83.78%> (-0.01%) ⬇️
tests/forte/data/data_store_test.py 95.04% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8af7f5a...bb16add. Read the comment docs.

@hepengfe hepengfe changed the title Datastore generics Datastore Generics & AudioAnnotation May 24, 2022
@mylibrar mylibrar linked an issue May 24, 2022 that may be closed by this pull request
@hunterhector hunterhector removed this from the 0.3 alpha milestone May 25, 2022
@mylibrar mylibrar marked this pull request as ready for review May 25, 2022 19:34
@mylibrar mylibrar requested a review from hunterhector May 25, 2022 19:50
Copy link
Member

@hunterhector hunterhector left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly documentation issues, but Query from the top.py is not supported in the add section


def _get_existing_entry_tid(self, entry: List[Any]):
r"""
This function searches for tid for existing entry tid. It return tid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should document that we search for Annotation-like data, and provide that which types can be searched here (and based on what to search)

Copy link
Collaborator Author

@hepengfe hepengfe May 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we might need to support non-Annotation like data in the future. So I am raising errors with messages to inform users when the non-supported data entry is provided.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, we probably won't do that, the purpose of this function is only searching duplicate in position (e.g begin and end). but this is not quite important

@hunterhector
Copy link
Member

Let's just pass the CI and merge this.

@mylibrar mylibrar merged commit 181d293 into asyml:master May 26, 2022
@hepengfe hepengfe deleted the datastore_generics branch May 26, 2022 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add new generics to DataStore Add new audio annotation to DataStore

3 participants