Skip to content

Commit

Permalink
fix PT test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Jan 11, 2025
1 parent 842fa0f commit 94bfef0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class LanguageAnnotatorTest {
public void testGetTokensWithPotentialLanguages() {
LanguageAnnotator annotator = new LanguageAnnotator();
List<LanguageAnnotator.TokenWithLanguages> tokens = annotator.getTokensWithPotentialLanguages("Der große Haus.", en, deList);
assertThat(tokens.toString(), is("[Der/de-DE, , große, , Haus/de-DE, .]")); // TODO: why no lang for 'große'?
assertThat(tokens.toString(), is("[Der/en-US/de-DE, , große, , Haus/de-DE, .]")); // TODO: why no lang for 'große'?
List<LanguageAnnotator.TokenWithLanguages> tokens2 = annotator.getTokensWithPotentialLanguages("This is a new bicycle.", en, deList);
assertThat(tokens2.toString(), is("[This/en-US, , is/en-US, , a/en-US/de-DE, , new/en-US, , bicycle/en-US, .]"));
}
Expand Down

0 comments on commit 94bfef0

Please sign in to comment.