TEI Loading Enhancement & Config-Based Corpus Creation#88
Merged
Conversation
…on of the Issue "Coding files #77"
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #88 +/- ##
==========================================
+ Coverage 66.54% 69.82% +3.28%
==========================================
Files 8 9 +1
Lines 550 633 +83
==========================================
+ Hits 366 442 +76
- Misses 184 191 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
This PR introduces two major improvements to SuperStyl:
1. Enhanced TEI Loading Functionality
met_line: Captures verse-level metric patternsmet_syll: Captures syllable-level metric patterns2. Configuration-Based Corpus Loading
Addresses Issue #77:
load_corpus_from_configfunction or the--jsonCLI optionExample Configuration:
{ "paths": "../corpus/02-chretiendetroyes_final.xml", "format": "tei", "sampling": { "enabled": true, "units": "verses", "sample_size": 1000, "sample_step": 500, "max_samples": 100, "sample_random": false }, "features": [ { "type": "words", "n": 1, "k": 1000, "freq_type": "relative", "culling": 0 }, { "type": "chars", "n": 3, "k": 2000, "freq_type": "relative", "culling": 5 }, { "type": "affixes", "n": 3, "k": 1000, "freq_type": "relative" }, { "type": "met_line", "n": 1, "k": 500, "freq_type": "relative" }, { "type": "met_syll", "n": 13, "k": 500, "freq_type": "relative" } ] }All functionality remains backward compatible with existing API calls and examples.