Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Owner Ids are maintained in separate mapping now #26

Merged
merged 2 commits into from
Jun 22, 2016

Conversation

fhieber
Copy link
Contributor

@fhieber fhieber commented Jun 21, 2016

Removed owner ids from Vocabulary. These are now maintained in their own mapping. Fixes a bug with multiple packed grammars that would overwrite each others owner Vocab id. Also cleaned up grammar constructors a little bit.
The owner id is now strongly typed to prevent users to accidentally use ints that do not represent an actual OwnerId. Further OwnerIds can only be returned by the OwnerMap.register() method.

@mjpost I am obviously not a Github PR expert. This PR includes the other one about class LMs. Lets coordinate merging if you are ok with both.

…hen estimateCost(). Also refactored the code a little bit to have StateMinimizingLanguageModels support classes as well. Added some unit tests. The existing regression test output was changed to the new output.
…own mapping. Fixes a bug with multiple packed grammars that would overwrite each others owner Vocab id. Also cleaned up grammar constructors a little bit.
@mjpost
Copy link
Contributor

mjpost commented Jun 22, 2016

Great, this checks out for me. Since it contains the class LM fix, too, though, I'll wait to merge until those tests pass.

@fhieber
Copy link
Contributor Author

fhieber commented Jun 22, 2016

Alright, I can rebase this PR once the ClassLM PR is merged so that we have a clean separation of those two commits on Github

@asfgit asfgit merged commit 1011bbb into apache:master Jun 22, 2016
@fhieber fhieber deleted the owner branch June 24, 2016 07:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants