Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(preprocessor): rename SentSplitPreprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 29, 2019
1 parent 030d6c6 commit 522c5a4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -280,7 +280,7 @@ Now let's see what the YAML config says. First impression, it is pretty intuitiv
<summary>Preprocessor config: text-prep.yml (click to expand...)</summary>

```yaml
!PunctSplitPreprocessor
!SentSplitPreprocessor
parameters:
start_doc_id: 0
random_doc_id: True
Expand Down
2 changes: 1 addition & 1 deletion tests/yaml/preprocessor1.yml
@@ -1,4 +1,4 @@
!PunctSplitPreprocessor
!SentSplitPreprocessor
parameters:
start_doc_id: 0
random_doc_id: True
Expand Down
2 changes: 1 addition & 1 deletion tests/yaml/test-preprocessor.yml
@@ -1,4 +1,4 @@
!PunctSplitPreprocessor
!SentSplitPreprocessor
parameters:
start_doc_id: 0
random_doc_id: True
Expand Down
4 changes: 2 additions & 2 deletions tutorials/component-yaml-spec.md
Expand Up @@ -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|
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion yaml-example/component/preprocessor.yml
@@ -1,4 +1,4 @@
!PunctSplitPreprocessor
!SentSplitPreprocessor
parameters:
start_doc_id: 0
random_doc_id: True
Expand Down

0 comments on commit 522c5a4

Please sign in to comment.