-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
3,896 additions
and
5,356 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 was deleted.
Oops, something went wrong.
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
Empty file.
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,25 @@ | ||
from annotations.writers.saf_chat import enrich_chat | ||
|
||
|
||
def test_chat_enrich(single_utt_allresults, asta_transcripts): | ||
'''Tests the CHAT enrichment functionality''' | ||
transcript = asta_transcripts.get(name='single_utt') | ||
doc = enrich_chat(transcript=transcript, allresults=single_utt_allresults, | ||
method=transcript.corpus.default_method) | ||
|
||
# Test the correct position of %xsyn annotations | ||
assert doc.lines[0].tiers.get('xsyn') is None | ||
assert doc.lines[1].tiers.get('xsyn') is not None | ||
|
||
|
||
def test_chat_enrich_newids(single_utt_allresults, asta_transcripts, tmp_path): | ||
'''Tests the CHAT enrichment using new Corpus2Alpino style | ||
In this style, uttids are not overwritten by xsid. | ||
''' | ||
transcript = asta_transcripts.get(name='single_utt_newstyle') | ||
doc = enrich_chat(transcript=transcript, allresults=single_utt_allresults, | ||
method=transcript.corpus.default_method) | ||
|
||
# Test the correct position of %xsyn annotations | ||
assert doc.lines[0].tiers.get('xsyn') is None | ||
assert doc.lines[1].tiers.get('xsyn') is not None |
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
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
Oops, something went wrong.