Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-225: change model name #235

Merged
merged 2 commits into from
Mar 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion underthesea/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.14
1.1.15
2 changes: 1 addition & 1 deletion underthesea/chunking/model_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion underthesea/ner/model_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion underthesea/pos_tag/model_crf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion underthesea/sent_tokenize/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion underthesea/word_tokenize/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down