This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified StructuredTranslation to use derivations instead of hyperg…
…raphs, now using in KBestExtractor The StructuredTranslation object is a great idea. I rewrote it here to do the following: - It now compiles. I'm not sure why it was tucked under $JOSHUA/joshua-6, but I just noticed this, and when I brought it in, it didn't work - I rewrote it to be based on a single (k-best) derivation, instead of knowing about the whole hypergraph. We should also build a more general object that knows about all the StructuredTranslation objects (maybe with some renaming - I changed it to have an option to only compute each of the items (e.g., features) if it was requested. The non-lazy version remains the default. - KBestExtractor now uses these. This is the first step to making a proper API. My thinking is that a large object (maybe Translation?) will contain the k-best extractor and can return StructuredTranslation objects as requested (again, we may want to jiggle the names a bit)
- Loading branch information
Showing
2 changed files
with
98 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this could be solved using the Suppliers pattern as already done in the PackedGrammar class