def test_check_latest_latin(self): """Test _check_latest_data()""" ner._check_latest_data('latin') names_path = os.path.normpath( get_cltk_data_dir() + '/latin/model/latin_models_cltk/ner/proper_names.txt') self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" path = os.path.join(CLTK_DATA_DIR, "lat/model/lat_models_cltk") names_dir = os.path.expanduser(path) shutil.rmtree(names_dir, ignore_errors=True) ner._check_latest_data("lat") names_path = os.path.join(names_dir, "ner", "proper_names.txt") self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" path = '~/cltk_data/latin/model/latin_models_cltk' #p = '~/cltk_data/latin/model/latin_models_cltk/ner/proper_names.txt' names_dir = os.path.expanduser(path) shutil.rmtree(names_dir, ignore_errors=True) ner._check_latest_data('latin') names_path = os.path.join(names_dir, 'ner', 'proper_names.txt') self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" path = '~/cltk_data/latin/model/latin_models_cltk' #p = '~/cltk_data/latin/model/latin_models_cltk/ner/proper_names.txt' names_dir = os.path.expanduser(path) shutil.rmtree(names_dir, ignore_errors=True) ner._check_latest_data('latin') names_path = os.path.join(names_dir, 'ner', 'proper_names.txt') self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" ner._check_latest_data('latin') names_path = os.path.expanduser( '~/cltk_data/latin/model/latin_models_cltk/ner/proper_names.txt') self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" ner._check_latest_data('latin') names_path = os.path.expanduser('~/cltk_data/latin/model/latin_models_cltk/ner/proper_names.txt') self.assertTrue(os.path.isfile(names_path))
def test_check_latest_latin(self): """Test _check_latest_data()""" ner._check_latest_data("lat") names_path = os.path.normpath( CLTK_DATA_DIR, "lat/model/latin_models_cltk/ner/proper_names.txt") self.assertTrue(os.path.isfile(names_path))