diff --git a/underthesea/VERSION b/underthesea/VERSION index e9bc1499..645377ee 100644 --- a/underthesea/VERSION +++ b/underthesea/VERSION @@ -1 +1 @@ -1.1.14 +1.1.15 diff --git a/underthesea/chunking/model.bin b/underthesea/chunking/chunk_crf_2017_10_12.bin similarity index 100% rename from underthesea/chunking/model.bin rename to underthesea/chunking/chunk_crf_2017_10_12.bin diff --git a/underthesea/chunking/model_crf.py b/underthesea/chunking/model_crf.py index b98ad657..3de8e364 100644 --- a/underthesea/chunking/model_crf.py +++ b/underthesea/chunking/model_crf.py @@ -13,7 +13,7 @@ class CRFChunkingPredictor: def __init__(self): self.model = pycrfsuite.Tagger() - filepath = join(dirname(__file__), "model.bin") + filepath = join(dirname(__file__), "chunk_crf_2017_10_12.bin") self.model.open(filepath) template = [ diff --git a/underthesea/ner/model_crf.py b/underthesea/ner/model_crf.py index 9d1f239f..cf08a37c 100644 --- a/underthesea/ner/model_crf.py +++ b/underthesea/ner/model_crf.py @@ -13,7 +13,7 @@ class CRFNERPredictor: def __init__(self): self.model = pycrfsuite.Tagger() - filepath = join(dirname(__file__), "model.bin") + filepath = join(dirname(__file__), "ner_crf_2017_10_12.bin") self.model.open(filepath) template = [ diff --git a/underthesea/ner/model.bin b/underthesea/ner/ner_crf_2017_10_12.bin similarity index 100% rename from underthesea/ner/model.bin rename to underthesea/ner/ner_crf_2017_10_12.bin diff --git a/underthesea/pos_tag/model_crf.py b/underthesea/pos_tag/model_crf.py index b84f1f6f..fc7d9c26 100644 --- a/underthesea/pos_tag/model_crf.py +++ b/underthesea/pos_tag/model_crf.py @@ -8,7 +8,7 @@ class CRFPOSTagPredictor: def __init__(self): self.model = pycrfsuite.Tagger() - filepath = join(dirname(__file__), "model.bin") + filepath = join(dirname(__file__), "pos_crf_2017_10_11.bin") self.model.open(filepath) template = [ diff --git a/underthesea/pos_tag/model.bin b/underthesea/pos_tag/pos_crf_2017_10_11.bin similarity index 100% rename from underthesea/pos_tag/model.bin rename to underthesea/pos_tag/pos_crf_2017_10_11.bin diff --git a/underthesea/sent_tokenize/__init__.py b/underthesea/sent_tokenize/__init__.py index 2f500ef4..dceeb70c 100644 --- a/underthesea/sent_tokenize/__init__.py +++ b/underthesea/sent_tokenize/__init__.py @@ -7,7 +7,7 @@ def sent_tokenize(text): - model_path = join(dirname(__file__), 'sent_tokenize_model_v1.0.pkl') + model_path = join(dirname(__file__), 'st_kiss-strunk-2006_2019_01_13.pkl') with open(model_path, 'rb') as fs: punkt_param = pickle.load(fs) diff --git a/underthesea/sent_tokenize/sent_tokenize_model_v1.0.pkl b/underthesea/sent_tokenize/st_kiss-strunk-2006_2019_01_13.pkl similarity index 100% rename from underthesea/sent_tokenize/sent_tokenize_model_v1.0.pkl rename to underthesea/sent_tokenize/st_kiss-strunk-2006_2019_01_13.pkl diff --git a/underthesea/word_tokenize/model.py b/underthesea/word_tokenize/model.py index ecad9781..62be5f29 100644 --- a/underthesea/word_tokenize/model.py +++ b/underthesea/word_tokenize/model.py @@ -28,7 +28,7 @@ class CRFModel: def __init__(self, model_path=None): if not model_path: - model_path = join(dirname(__file__), "model_vlsp2013.bin") + model_path = join(dirname(__file__), "wt_crf_2018_09_13.bin") estimator = pycrfsuite.Tagger() estimator.open(model_path) self.estimator = estimator diff --git a/underthesea/word_tokenize/model_vlsp2013.bin b/underthesea/word_tokenize/wt_crf_2018_09_13.bin similarity index 100% rename from underthesea/word_tokenize/model_vlsp2013.bin rename to underthesea/word_tokenize/wt_crf_2018_09_13.bin