From 94ad1b9b3083cdd8cc4ac09213944f72b60307bc Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Fri, 9 Jul 2021 21:50:29 -0400 Subject: [PATCH] Add POS model to fr package data --- gruut-lang-fr/setup.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gruut-lang-fr/setup.py b/gruut-lang-fr/setup.py index 2aaeb82..09c6e6f 100644 --- a/gruut-lang-fr/setup.py +++ b/gruut-lang-fr/setup.py @@ -15,6 +15,13 @@ with open(version_path, "r") as version_file: version = version_file.read().strip() + +extra_files = [] + +pos_model = module_dir / "pos" / "model.crf" +if pos_model.is_file(): + extra_files.append(str(pos_model.relative_to(module_dir))) + # ----------------------------------------------------------------------------- setuptools.setup( @@ -33,6 +40,7 @@ "espeak/lexicon.db", "espeak/g2p/model.crf", ] + + extra_files }, classifiers=[ "Programming Language :: Python :: 3",