Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
setup.py: check paraphrase files
Browse files Browse the repository at this point in the history
  • Loading branch information
ozancaglayan committed Feb 6, 2017
1 parent 6470257 commit a127f90
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import sys

from setuptools import setup
import nmtpy

# Install pycocoevalcap metric scorers as well
pycocometrics = ['bleu', 'meteor', 'cider', 'rouge']
pycocopackages = ['nmtpy.cocoeval.%s' % m for m in pycocometrics]
pycocometrics = ['bleu', 'meteor', 'cider', 'rouge']
pycocopackages = ['nmtpy.cocoeval.%s' % m for m in pycocometrics]

if 'install' in sys.argv or 'develop' in sys.argv:
if not os.path.exists('nmtpy/external/data/paraphrase-en.gz'):
print('You need to run scripts/get-meteor-data.sh first.')
sys.exit(1)

setup(
name='nmtpy',
Expand Down

0 comments on commit a127f90

Please sign in to comment.