-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(reader): merge_on parameter (#8)
Merge units on a single feature, respecting unit type and parent-child relations. Note that this assumes input types are mapped appropriately.
- Loading branch information
1 parent
7cf2c29
commit b787123
Showing
4 changed files
with
252 additions
and
31 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<document version="2"> | ||
<interlinear-text> | ||
<paragraphs> | ||
<paragraph> | ||
<phrases> | ||
<phrase> | ||
<words> | ||
<word> | ||
<item lang="en" type="pos">DET</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">NOUN</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">VERB</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">PUNCT</item> | ||
</word> | ||
</words> | ||
<item lang="en" type="segnum">1</item> | ||
</phrase> | ||
<phrase> | ||
<words> | ||
<word> | ||
<item lang="en" type="pos">DET</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">NOUN</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">VERB</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="pos">PUNCT</item> | ||
</word> | ||
</words> | ||
<item lang="en" type="segnum">2</item> | ||
</phrase> | ||
</phrases> | ||
</paragraph> | ||
</paragraphs> | ||
</interlinear-text> | ||
</document> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<document version="2"> | ||
<interlinear-text> | ||
<paragraphs> | ||
<paragraph> | ||
<phrases> | ||
<phrase> | ||
<words> | ||
<word> | ||
<item lang="en" type="txt">The</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">man</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">snores</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">.</item> | ||
</word> | ||
</words> | ||
<item lang="en" type="segnum">1</item> | ||
</phrase> | ||
<phrase> | ||
<words> | ||
<word> | ||
<item lang="en" type="txt">The</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">woman</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">sings</item> | ||
</word> | ||
<word> | ||
<item lang="en" type="txt">.</item> | ||
</word> | ||
</words> | ||
<item lang="en" type="segnum">2</item> | ||
</phrase> | ||
</phrases> | ||
</paragraph> | ||
</paragraphs> | ||
</interlinear-text> | ||
</document> |