Skip to content

Commit

Permalink
script to output session stats in tsv given logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishokamp committed Feb 16, 2017
1 parent 71a4ea6 commit 433c4b5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion experiments/log_analysis/analyse_qe_score_session_logs.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#!/usr/bin/env python
"""
Write some stats to a tsv for each task, given a directory of .json log files
"""

import os
import json
import codecs
import difflib
import re
import argparse
from collections import defaultdict, Counter

import difflib

__author__ = "Chris Hokamp"

def tasks_from_session_log(log):
return [(name, log['document'][name]['segments']) for name in log['document'].keys()]
Expand Down

0 comments on commit 433c4b5

Please sign in to comment.