From 4503f659095df904cd36bd6ce89a474fbb0f5dce Mon Sep 17 00:00:00 2001 From: hankcs Date: Fri, 1 Jan 2021 15:11:16 -0500 Subject: [PATCH] Rename UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_XLMR_BASE --- README.md | 2 +- docs/tutorial.md | 2 +- hanlp/pretrained/mtl.py | 2 +- hanlp/version.py | 2 +- plugins/hanlp_demo/hanlp_demo/mul/demo_mtl.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fdc6a569e..0e9aebae3 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ HanLP requires Python 3.6 or later. GPU/TPU is suggested but not mandatory. ```python import hanlp -HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MT5_BASE) +HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_XLMR_BASE) print(HanLP(['In 2021, HanLPv2.1 delivers state-of-the-art multilingual NLP techniques to production environment.', '2021年、HanLPv2.1は次世代の最先端多言語NLP技術を本番環境に導入します。', '2021年 HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。'])) diff --git a/docs/tutorial.md b/docs/tutorial.md index 3591bdbf5..357192c15 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -99,7 +99,7 @@ See our [data format](data_format) for details. ```{code-cell} ipython3 :tags: [output_scroll] import hanlp -HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MT5_BASE) +HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_XLMR_BASE) print(HanLP(['In 2021, HanLPv2.1 delivers state-of-the-art multilingual NLP techniques to production environment.', '2021年、HanLPv2.1は次世代の最先端多言語NLP技術を本番環境に導入します。', '2021年 HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。'])) diff --git a/hanlp/pretrained/mtl.py b/hanlp/pretrained/mtl.py index a1118c85c..ea95836d2 100644 --- a/hanlp/pretrained/mtl.py +++ b/hanlp/pretrained/mtl.py @@ -15,7 +15,7 @@ UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MT5_SMALL = HANLP_URL + 'mtl/ud_ontonotes_tok_pos_lem_fea_ner_srl_dep_sdp_con_mt5_small_20201231_211858.zip' 'mt5 small version of joint tok, pos, lem, fea, ner, srl, dep, sdp and con model trained on UD and OntoNotes5 corpus.' -UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MT5_BASE = HANLP_URL + 'mtl/ud_ontonotes_tok_pos_lem_fea_ner_srl_dep_sdp_con_xlm_base_20201231_232029.zip' +UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_XLMR_BASE = HANLP_URL + 'mtl/ud_ontonotes_tok_pos_lem_fea_ner_srl_dep_sdp_con_xlm_base_20201231_232029.zip' 'XLM-R base version of joint tok, pos, lem, fea, ner, srl, dep, sdp and con model trained on UD and OntoNotes5 corpus.' # Will be filled up during runtime diff --git a/hanlp/version.py b/hanlp/version.py index 746fb4cc9..b5bbdd3c3 100644 --- a/hanlp/version.py +++ b/hanlp/version.py @@ -2,5 +2,5 @@ # Author: hankcs # Date: 2019-12-28 19:26 -__version__ = '2.1.0-alpha.2' +__version__ = '2.1.0-alpha.3' """HanLP version""" diff --git a/plugins/hanlp_demo/hanlp_demo/mul/demo_mtl.py b/plugins/hanlp_demo/hanlp_demo/mul/demo_mtl.py index 367bf48ca..bf7ada15e 100644 --- a/plugins/hanlp_demo/hanlp_demo/mul/demo_mtl.py +++ b/plugins/hanlp_demo/hanlp_demo/mul/demo_mtl.py @@ -4,7 +4,7 @@ import hanlp from hanlp_common.document import Document -HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MT5_BASE) +HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_XLMR_BASE) doc: Document = HanLP([ 'In 2021, HanLPv2.1 delivers state-of-the-art multilingual NLP techniques to production environment.', '2021年、HanLPv2.1は次世代の最先端多言語NLP技術を本番環境に導入します。',