diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/GazeAnalysis/NGram.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/argaze/GazeAnalysis/NGram.py b/src/argaze/GazeAnalysis/NGram.py index b985d7d..dc7b43e 100644 --- a/src/argaze/GazeAnalysis/NGram.py +++ b/src/argaze/GazeAnalysis/NGram.py @@ -29,6 +29,6 @@ class AOIScanPathAnalyzer(GazeFeatures.AOIScanPathAnalyzer): sequence = str(aoi_scan_path) ngrams = zip(*[sequence[i:] for i in range(n)]) - ngrams = [tuple([aoi_scan_path.get_letter_aoi(l) for l in ngram]) for ngram in ngrams] + ngrams = [ngram for ngram in ngrams] - return {ngram : ngrams.count(ngram) for ngram in ngrams} + return {tuple([aoi_scan_path.get_letter_aoi(l) for l in ngram]) : ngrams.count(ngram) for ngram in ngrams} |