Skip to content
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
28 changes: 28 additions & 0 deletions docs/pages/tests/robustness/number_to_word.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div class="h3-box" markdown="1">

## Number To Word

This test provides a convenient way to convert numerical values in text into their equivalent words. It is particularly useful for applications that require handling or processing textual data containing numbers.

**alias_name:** `number_to_word`

</div><div class="h3-box" markdown="1">

#### Config
```yaml
number_to_word:
min_pass_rate: 0.8
```
- **min_pass_rate (float):** Minimum pass rate to pass the test.

</div><div class="h3-box" markdown="1">

#### Examples

{:.table2}
|Original|Test Case|
|-|
|I live in London, United Kingdom since 2019 | I live in London, United Kingdom since two thousand and nineteen|
|I can't move to the USA because they have an average of 100 tornadoes a year, and I'm terrified of them|I can't move to the USA because they have an average of one hundred tornadoes a year, and I'm terrified of them|

</div>
4 changes: 2 additions & 2 deletions docs/pages/tests/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ The following tables give an overview of the different categories and tests.
|[Robustness](robustness) |[Swap Entities](robustness#swap-entities) |`ner`
|[Robustness](robustness) |[Titlecase](robustness#titlecase) |`ner`, `text-classification`, `question-answering`
|[Robustness](robustness) |[Uppercase](robustness#uppercase) |`ner`, `text-classification`, `question-answering`
|[Robustness](robustness) |[Number to Word](robustness#number-to-word) |`ner`, `text-classification`, `question-answering`


</div></div>
</div></div>