From 69b6249b7a7fc7399d1708bd7b52861a41abd798 Mon Sep 17 00:00:00 2001 From: Joshua Charles Campbell Date: Sat, 28 Nov 2015 12:04:20 -0700 Subject: [PATCH] add debugging print -_-;; --- unnaturalcode/sourceModel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unnaturalcode/sourceModel.py b/unnaturalcode/sourceModel.py index 2e256aa..d975568 100644 --- a/unnaturalcode/sourceModel.py +++ b/unnaturalcode/sourceModel.py @@ -68,6 +68,7 @@ def predictLexed(self, lexemes): def windowedQuery(self, lexemes, returnWindows=True): lastWindowStarts = len(lexemes)-self.windowSize + warn("Query was %i long:" % (len(lexemes),)) if lastWindowStarts < 1: if returnWindows: return [(lexemes, self.queryLexed(lexemes))]