Add XML output support via new morpheus binary - #6
Open
whothefluff wants to merge 2 commits into
Open
Conversation
morpheus shares cruncher's analysis pipeline (AnalyzeString, SortAnals, GoodAnals) but emits structured Perseus-style XML instead of <NL> lines: full-word vocabulary, refined parts of speech, cartesian-expanded <infl> elements for multi-value case/gender, inline <unknown> for unrecognized words. Includes an independent test suite (tests/run_xml_tests.sh) validating well-formedness, parity with cruncher on shared word lists, and documented intentional divergences. See README_XML.md for usage and test ID reference.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new binary,
morpheus, that emits structured Perseus-style XML instead ofcruncher's<NL>lines. Built on top of #, it reuses the shared pipeline (AnalyzeString,SortAnals,GoodAnals) rather than reimplementing analysis logic.Output includes:
<infl>elements for multi-value case/gender<unknown>for unrecognized wordsScope of change: this only adds new files (the
morpheusbinary + its own test suite); it does not modifycruncher's behaviorbeyond what's already in #5. Existing users/output are unaffected.
Testing: independent suite at
tests/run_xml_tests.sh, checking well-formedness, parity withcruncheron shared word lists, and a documented list of intentional divergences (seeREADME_XML.md).No pressure to merge this one if it's not useful for your fork. I know it's a bigger diff and a feature you may not need. Happy to
maintain it as a documented divergence in my fork if you'd rather keep
cruncheras the only binary upstream.