Skip to content

[formrecognizer] Adding initial get_styles() proposal#21336

Closed
catalinaperalta wants to merge 1 commit intoAzure:mainfrom
catalinaperalta:addGetStylesProposal
Closed

[formrecognizer] Adding initial get_styles() proposal#21336
catalinaperalta wants to merge 1 commit intoAzure:mainfrom
catalinaperalta:addGetStylesProposal

Conversation

@catalinaperalta
Copy link
Member

No description provided.

# type () -> [DocumentStyle]
styles = []
for style in self._parent.styles:
if in_span(self, style):
Copy link
Member Author

@catalinaperalta catalinaperalta Oct 19, 2021

Choose a reason for hiding this comment

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

in_span() is defined in the get_words() PR (#21335). For ease the code is:

def in_span(element, spans):
    # type: (Any, list[Point]) -> bool
    if hasattr(element, "span"):
        for span in spans:
            if element.span.offset >= span.offset and (
                element.span.offset + element.span.length
            ) <= (span.offset + span.length):
                return True
    return False

@azure-sdk
Copy link
Collaborator

API changes have been detected in azure-ai-formrecognizer. You can review API changes here

API changes

+     def get_styles(self) -> [DocumentStyle]
+  

@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label May 27, 2022
@ghost
Copy link

ghost commented May 27, 2022

Hi @catalinaperalta. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@ghost ghost closed this Jun 3, 2022
@ghost
Copy link

ghost commented Jun 3, 2022

Hi @catalinaperalta. Thank you for your contribution. Since there hasn't been recent engagement, we're going to close this out. Feel free to respond with a comment containing "/reopen" if you'd like to continue working on these changes. Please be sure to use the command to reopen or remove the "no-recent-activity" label; otherwise, this is likely to be closed again with the next cleanup pass.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cognitive - Form Recognizer no-recent-activity There has been no recent activity on this issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants