Changeset - 252d3b1bca60
[Not reviewed]
default
0 3 0
Laman - 2 years ago 2022-10-17 19:12:22

models file included in the package
3 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
setup.cfg
Show inline comments
 
@@ -18,3 +18,6 @@ packages =
 
package_dir =
 
    =src
 
python_requires = >=3.6
 

	
 
[options.package_data]
 
languedoc = models.json.gz
src/languedoc/predict.py
Show inline comments
 
@@ -5,7 +5,7 @@ import json
 
import gzip
 

	
 
TOP_NGRAM_COUNT = 3000
 
MODEL_PATH = os.path.join(os.path.dirname(__file__), "../../models.json.gz")
 
MODEL_PATH = os.path.join(os.path.dirname(__file__), "models.json.gz")
 

	
 

	
 
def preprocess(text):
src/languedoc/train.py
Show inline comments
 
@@ -74,7 +74,7 @@ def cross_validate(sample_sets):
 

	
 
DATA_DIR = os.path.join(os.path.dirname(__file__), "../../data")
 
LANG_DIRS = sorted([x.path for x in os.scandir(DATA_DIR)])
 
MODEL_PATH = os.path.join(os.path.dirname(__file__), "../../models.json.gz")
 
MODEL_PATH = os.path.join(os.path.dirname(__file__), "models.json.gz")
 

	
 
if __name__ == "__main__":
 
	samples = []
0 comments (0 inline, 0 general)