interrogator / corpkit

A toolkit for corpus linguistics
Other
199 stars 27 forks source link

make_conc_obj_from_conclines(): ValueError: too many values to unpack #38

Open alischinsky opened 8 years ago

alischinsky commented 8 years ago

Corpkit 2.2.9 now crashes under Python2 when interrogating a corpus; it's probably something about the way it iterates over unique_results. Traceback here.

Python3 works fine.

interrogator commented 8 years ago

Python 2 and 3 differ in how they handle for x, y, z in iterable:, so it makes sense. I'll look into it.

alischinsky commented 8 years ago

I take that back. Python3 crashes on the same line when do_concordancing=True.

interrogator commented 8 years ago

This was a problem for plaintext regular expression searching. What was happening is that the regular expression was matching subgroups when it shouldn't. It should be fixed by ed81040.