From 522c5a4ebbe79fc17b49cbda1287d2487dcb45b5 Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Thu, 29 Aug 2019 13:54:44 +0800 Subject: [PATCH] fix(preprocessor): rename SentSplitPreprocessor --- README.md | 2 +- tests/yaml/preprocessor1.yml | 2 +- tests/yaml/test-preprocessor.yml | 2 +- tutorials/component-yaml-spec.md | 4 ++-- yaml-example/component/preprocessor.yml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b355cfff..afb7ab60 100644 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ Now let's see what the YAML config says. First impression, it is pretty intuitiv Preprocessor config: text-prep.yml (click to expand...) ```yaml -!PunctSplitPreprocessor +!SentSplitPreprocessor parameters: start_doc_id: 0 random_doc_id: True diff --git a/tests/yaml/preprocessor1.yml b/tests/yaml/preprocessor1.yml index e9270bd6..35e8f6f4 100644 --- a/tests/yaml/preprocessor1.yml +++ b/tests/yaml/preprocessor1.yml @@ -1,4 +1,4 @@ -!PunctSplitPreprocessor +!SentSplitPreprocessor parameters: start_doc_id: 0 random_doc_id: True diff --git a/tests/yaml/test-preprocessor.yml b/tests/yaml/test-preprocessor.yml index e9270bd6..35e8f6f4 100644 --- a/tests/yaml/test-preprocessor.yml +++ b/tests/yaml/test-preprocessor.yml @@ -1,4 +1,4 @@ -!PunctSplitPreprocessor +!SentSplitPreprocessor parameters: start_doc_id: 0 random_doc_id: True diff --git a/tutorials/component-yaml-spec.md b/tutorials/component-yaml-spec.md index 394b831a..17d2367b 100644 --- a/tutorials/component-yaml-spec.md +++ b/tutorials/component-yaml-spec.md @@ -65,7 +65,7 @@ In this example, we define a `TorchvisionEncoder` that loads a pretrained VGG16 |`!CLS`| Component Type | |---|---| |`!BasePreprocessor`|Preprocessor| -|`!PunctSplitPreprocessor`|Preprocessor| +|`!SentSplitPreprocessor`|Preprocessor| |`!BaseImagePreprocessor`|Preprocessor| |`!BaseTextPreprocessor`|Preprocessor| |`!VanillaSlidingPreprocessor`|Preprocessor| @@ -214,7 +214,7 @@ Note that how we defines a map under `kwargs` to describe the arguments, they wi The examples above are all about encoder. In fact, every component including encoder, preprocessor, router, indexer can all be described with YAML and loaded to GNES. For example, ```yaml -!PunctSplitPreprocessor +!SentSplitPreprocessor parameters: start_doc_id: 0 random_doc_id: True diff --git a/yaml-example/component/preprocessor.yml b/yaml-example/component/preprocessor.yml index e9270bd6..35e8f6f4 100644 --- a/yaml-example/component/preprocessor.yml +++ b/yaml-example/component/preprocessor.yml @@ -1,4 +1,4 @@ -!PunctSplitPreprocessor +!SentSplitPreprocessor parameters: start_doc_id: 0 random_doc_id: True