CoderPat / MuDA

9 stars 6 forks source link

Add integration tests for MuDA #14

Closed nightingal3 closed 1 year ago

nightingal3 commented 2 years ago

Tests that output is as expected (note, not 100% sure what's expected, maybe @CoderPat can verify) Planning to store the tests in text format:

example_data/
    tests/
        lang/
            phenomena/
                example.tgt
                example.src
                example.docids
                example.expected (expected result of tagger, 0/1 for each token for if we expect that token to be tagged)
CoderPat commented 2 years ago

Hey! Can you run black to see if it passes tests. If so I'll merge, looks super slick We could make the expected tags have IDs for the phenomena expected, but this also works for now

nightingal3 commented 2 years ago

Thanks, I changed the file format to test all phenomena together now (see the enum). Will add the other expected languages after as variants of this one.

The tests don't actually pass so I removed pytest from actions for now. Shouldn't "your/votre" be tagged in the example?