Skip to content

Conversation

@KaiKangSDU
Copy link

Hi, thanks for your modifying code to suit python3. It really works. But I have a question. How do I use it ?How can I install it? Or I just add it to my code folder? Thanks in advance.

@flauted
Copy link

flauted commented Jul 24, 2018

Consider using my fork from PR#32. The code is packaged so you can either clone it and set your PYTHONPATH appropriately, or you can pip install it from Github.

salaniz and others added 13 commits July 24, 2019 18:37
Allow a parameter in compute score method to turn off verbose in Bleu_scorer compute_score method
Allow verbose off for Bleu score
PTBTokenizer logs tokenization details by default (ex. `PTBTokenizer tokenized 2 tokens at 33.87 tokens per second`).
This becomes noisy when you have run tokenization iteratively.
I redirect stderr to `subprocess.DEVNULL` to suppress this.
Enable verbosity control of PTBTokenizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants