Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed GetGlyphConfidences() to GetChoices() and glyph_confidences t… #1997

Merged
merged 1 commit into from
Oct 17, 2018

Conversation

noahmetzger
Copy link
Contributor

…o lstm_choice_mode

Renamed the global attribute glyph_confidences to lstm_choice_mode and the method GetGlyphConfidences() to GetChoices(). All Variables and comments contained in related methods were renamed as well.

Signed-off-by: Noah Metzger noah.metzger@bib.uni-mannheim.de

…o lstm_choice_mode

Renamed the global attribute glyph_confidences to lstm_choice_mode and the method GetGlyphConfidences() to GetChoices(). All Variables and comments contained in related methods were renamed as well.

Signed-off-by: Noah Metzger <noah.metzger@bib.uni-mannheim.de>
@amitdo
Copy link
Collaborator

amitdo commented Oct 17, 2018

Get choices of what?

@zdenop zdenop merged commit 9c2d1aa into tesseract-ocr:master Oct 17, 2018
@egorpugin
Copy link
Contributor

Yes, seems a bit strange name and very unclear.
I'm for longer, but more meaningful name.

In comment you wrote:
* Returns the lstm choices for every LSTM timestep for the current Word

Maybe rename to getLstmChoices()?

@Shreeshrii
Copy link
Collaborator

Maybe rename to getLstmChoices()?

+1

@zdenop
Copy link
Contributor

zdenop commented Oct 18, 2018

So is there agreement to rename GetChoices to getLstmChoices?

@amitdo
Copy link
Collaborator

amitdo commented Oct 18, 2018

My point was that the name should include the relevant unit which is symbol.

@stweil
Copy link
Contributor

stweil commented Oct 18, 2018

@amitdo, which name would you prefer?

@amitdo
Copy link
Collaborator

amitdo commented Oct 18, 2018

GetSymbolChoices()

@zdenop
Copy link
Contributor

zdenop commented Oct 18, 2018

Skipping lsmt?

@egorpugin
Copy link
Contributor

I'm fine with that.

@amitdo
Copy link
Collaborator

amitdo commented Oct 18, 2018

You can also add lstm...

@bertsky
Copy link
Contributor

bertsky commented Oct 18, 2018

So GetBestLSTMSymbolChoices then? (It's not about all choices, they are sorted by probability and capped.)

@stweil
Copy link
Contributor

stweil commented Oct 18, 2018

Please add your thumbs up to @bertsky's suggestion if I should implement it like that.

@zdenop
Copy link
Contributor

zdenop commented Oct 19, 2018

let's close voting at within next 5 hours (thumbs up or down) and then @stweil can update #1998...

@amitdo
Copy link
Collaborator

amitdo commented Oct 19, 2018

A short description of this feature is needed here:
https://github.com/tesseract-ocr/tesseract/wiki/ReleaseNotes

@stweil
Copy link
Contributor

stweil commented Oct 20, 2018

@noahmetzger can do that on Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants