Warn about prefix rules only in Most and All modes.

This commit is contained in:
dchandler 2003-10-21 00:23:55 +00:00
parent 1224030898
commit 188b9c322e

View file

@ -285,6 +285,7 @@ class TParseTree {
TStackListList noPrefixTestsUniqueParse = getUniqueParse(true); TStackListList noPrefixTestsUniqueParse = getUniqueParse(true);
if (noPrefixTestsUniqueParse.size() == 1 if (noPrefixTestsUniqueParse.size() == 1
&& !noPrefixTestsUniqueParse.get(0).equals(bestParse)) { && !noPrefixTestsUniqueParse.get(0).equals(bestParse)) {
if (warningLevel != "Some")
return "Warning: We're going with " + bestParse + ", but only because our knowledge of prefix rules says that " + noPrefixTestsUniqueParse.get(0) + " is not a legal Tibetan tsheg bar (\"syllable\")"; return "Warning: We're going with " + bestParse + ", but only because our knowledge of prefix rules says that " + noPrefixTestsUniqueParse.get(0) + " is not a legal Tibetan tsheg bar (\"syllable\")";
} }
} }