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

Add StringNat distribution and typo_nat joint distribution #171

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

ThomasColthurst
Copy link
Collaborator

Fixes #167


Bigram(size_t _max_length = 80): max_length(_max_length) {
Bigram(size_t _max_length = 80,
char _min_char = ' ',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason these need to be constructor arguments / modifiable? Should/can we keep these as macro constants / static const members?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, so the reason I changed them to be constructor arguments is that they are used in constructor (to calculate num_chars, which in turn is used to make the transition_dist tables).

I wanted the subclass to change them, but also be able to call the parent's constructor to do the necessary work.

@ThomasColthurst ThomasColthurst merged commit db79adf into master Aug 15, 2024
2 checks passed
@ThomasColthurst ThomasColthurst deleted the 081524-thomaswc-strnat branch August 15, 2024 19:24
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.

HIRM assigns logp_score = -inf to hospital data
2 participants