Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions solon.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,6 @@ def main():
print("[4] GRAMMATICALITY = FEWER BITS (BLiMP-style minimal pairs)")
pairs = minimal_pairs(random.Random(7), n=400)
cg = ConstructionGrammar(train_tokens, assigned)
for name, scorer in [("statistical (back-off LM)", lambda s: lm.sentence_total(s)),
("construction grammar ", cg.bits)]:
pass
# statistical scorer
lm_score = lambda s: sum(b for _, b in lm.sentence_bits(s))
for name, scorer in [("statistical back-off LM ", lm_score),
("construction grammar ", cg.bits)]:
Expand Down
Loading