diff --git a/unnaturalcode/sourceModel.py b/unnaturalcode/sourceModel.py index d975568..b05ff4f 100644 --- a/unnaturalcode/sourceModel.py +++ b/unnaturalcode/sourceModel.py @@ -68,7 +68,7 @@ def predictLexed(self, lexemes): def windowedQuery(self, lexemes, returnWindows=True): lastWindowStarts = len(lexemes)-self.windowSize - warn("Query was %i long:" % (len(lexemes),)) + error("Query was %i long:" % (len(lexemes),)) if lastWindowStarts < 1: if returnWindows: return [(lexemes, self.queryLexed(lexemes))]