Skip to content

paired-bootstrap.py Python and NLTK version #6

@Gldkslfmsd

Description

@Gldkslfmsd

Hello,

I think it would be nice to report, which Python and NLTK version it is compatible with. I think from this reason I'm getting this error:

Traceback (most recent call last):
  File "paired-bootstrap.py", line 129, in <module>
    eval_with_paired_bootstrap(gold, sys1, sys2, eval_type=args.eval_type, num_samples=args.num_samples)
  File "paired-bootstrap.py", line 85, in eval_with_paired_bootstrap
    sys1_score = eval_measure(reduced_gold, reduced_sys1, eval_type=eval_type)
  File "paired-bootstrap.py", line 42, in eval_measure
    return nltk.translate.bleu_score(gold, sys)
TypeError: 'module' object is not callable

Python 3.5.2, nltk (3.3)
python3 paired-bootstrap.py $ref $best $i --eval_type bleu

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions