From d381c1aa56bd0fbd09935f892d677587cbbd7bd8 Mon Sep 17 00:00:00 2001 From: PenutChen Date: Fri, 11 Oct 2019 22:24:57 +0800 Subject: [PATCH 1/3] Update README.md Fix trailing parentheses and inconsistent coding style in the "Run the WS-POS-NER pipeline" section. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 556e5af..faa2c53 100644 --- a/README.md +++ b/README.md @@ -139,9 +139,9 @@ sentence_list = [ word_sentence_list = ws( sentence_list, # sentence_segmentation=True, # To consider delimiters - # segment_delimiter_set = {",", "。", ":", "?", "!", ";"}), # This is the defualt set of delimiters - # recommend_dictionary = dictionary1, # words in this dictionary are encouraged - # coerce_dictionary = dictionary2, # words in this dictionary are forced + # segment_delimiter_set={",", "。", ":", "?", "!", ";"}, # This is the defualt set of delimiters + # recommend_dictionary=dictionary1, # words in this dictionary are encouraged + # coerce_dictionary=dictionary2, # words in this dictionary are forced ) pos_sentence_list = pos(word_sentence_list) @@ -164,7 +164,7 @@ def print_word_pos_sentence(word_sentence, pos_sentence): print(f"{word}({pos})", end="\u3000") print() return - + for i, sentence in enumerate(sentence_list): print() print(f"'{sentence}'") From 8bc8f702d885aeb4c64e72791d5ef9765d55463d Mon Sep 17 00:00:00 2001 From: PenutChen Date: Mon, 8 Jun 2020 13:20:33 +0800 Subject: [PATCH 2/3] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index faa2c53..b8c8fc0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,20 @@ # CkipTagger Also: [中文 README](https://github.com/ckiplab/ckiptagger/wiki/Chinese-README) +## Quickstart ++ Download script: + ```python + import os + from ckiptagger import data_utils + + data_dir = './ckip_data' + data_subdir = os.path.join('./ckip_data', 'data') + if not os.path.exists(data_subdir): + os.makedirs(data_dir, exist_ok=True) + data_utils.download_data_gdown(data_dir) + os.remove(os.path.join(data_dir, 'data.zip')) + ``` + #### GitHub https://github.com/ckiplab/ckiptagger From 821d60aa4b617ffc118a0d643ad2d181be6f6ca6 Mon Sep 17 00:00:00 2001 From: PenutChen Date: Wed, 12 Aug 2020 11:02:54 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b8c8fc0..d512286 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Also: [中文 README](https://github.com/ckiplab/ckiptagger/wiki/Chinese-README) ## Quickstart + Download script: ```python + # !pip install ckiptagger tensorflow gdown import os from ckiptagger import data_utils