-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Refactor models to records #172
Conversation
Why are the options not also converted? |
Why is corpus size removed? |
Why was this removed? |
Previously, johnml1135 (John Lambert) wrote…
Why was it moved below? |
Is this tested? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 30 of 30 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @ddaspit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was focusing on the models. We could convert the option classes to records in a future PR.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @johnml1135)
src/SIL.Machine.AspNetCore/Services/NmtPreprocessBuildJob.cs
line 87 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Why is corpus size removed?
I believe that the corpus size and the train count were trying to capture the same thing.
src/SIL.Machine.AspNetCore/Services/NmtPreprocessBuildJob.cs
line 117 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Why was it moved below?
The models were updated to be immutable. The old logic worked by updating a property of the model, which isn't a great idea anyway. To avoid updating the model, I moved the code below. I think the logic is clearer this way as well.
src/SIL.Machine.AspNetCore/Services/NmtPreprocessBuildJob.cs
line 171 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Is this tested?
It looks like there are some unit tests for key terms.
Tracked here: #174 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ddaspit)
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)