From da52c3e6f0c1d0cfaf063e4b5f1a10444b3cc018 Mon Sep 17 00:00:00 2001 From: Panupong Pasupat Date: Mon, 13 Mar 2017 15:46:48 -0700 Subject: [PATCH] Updated fictitious-dump-lf.py --- tables/table-alter/fictitious-dump-lf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tables/table-alter/fictitious-dump-lf.py b/tables/table-alter/fictitious-dump-lf.py index 03b756c..acd2b18 100755 --- a/tables/table-alter/fictitious-dump-lf.py +++ b/tables/table-alter/fictitious-dump-lf.py @@ -56,7 +56,7 @@ SCHEMES = { 'e': lambda vector: all(x != 'Ax' and x != 'Bx' for x in vector), # [A] When the Turkers agree on an answer, LF must agree with that # Also the Turkers must agree on the original table - 'A': lambda vector: vector[0][0] == 'A' and all(x != 'Ax' for x in vector), + 'A': lambda vector: vector and vector[0][0] == 'A' and all(x != 'Ax' for x in vector), # [a] When the Turkers agree on an answer, LF must agree with that 'a': lambda vector: all(x != 'Ax' for x in vector), # [l] Allow LF to disagree with Turkers at most once