Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed Jan 8, 2021
1 parent 25a7722 commit acb4a58
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ NLPRule currently supports English and German.
| English | 843 (100%) | 3725 (~ 85%) | 5.2 |
| German | 486 (100%) | 2970 (~ 90%) | 5.2 |

NLPRule is focused on speed.

```python
In [1]: from nlprule import Tokenizer, Rules, SplitOn
...:
...: tokenizer = Tokenizer.load("en")
...: rules = Rules.load("en", tokenizer, SplitOn([".", "?", "!"]))

In [2]: %timeit rules.correct("He wants that you send him an email.")
4.43 ms ± 15.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```

<sub>Using Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz</sub>

## Usage

1. Install: `pip install nlprule`
Expand Down

0 comments on commit acb4a58

Please sign in to comment.