Spaces:
Running on Zero
Running on Zero
File size: 359 Bytes
f44aac9 | 1 2 3 4 5 6 7 8 9 10 11 | from hackathon_advisor.aliases import normalize_text
def test_normalize_jargon_alias() -> None:
text, corrections = normalize_text("use neutron with mini cpm on zero gpu")
assert "Nemotron" in text
assert "MiniCPM5" in text
assert "ZeroGPU" in text
assert {item.canonical for item in corrections} >= {"Nemotron", "MiniCPM5", "ZeroGPU"}
|