Skip to content

Commit ecaa4cc

Browse files
author
Rachit Bansal
committed
minor module import change
1 parent 5b85d99 commit ecaa4cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This example trains a classifier on adjectives mined from Twitter using Python 3
2424

2525
```python
2626
from pattern.web import Twitter
27-
from pattern.en import tag
27+
from pattern.text.en import tag
2828
from pattern.vector import KNN, count
2929

3030
twitter, knn = Twitter(), KNN()
@@ -68,7 +68,7 @@ If none of the above works, you can make Python aware of the module in three way
6868
```python
6969
MODULE = '/users/tom/desktop/pattern'
7070
import sys; if MODULE not in sys.path: sys.path.append(MODULE)
71-
from pattern.en import parsetree
71+
from pattern.text.en import parsetree
7272
```
7373

7474
Documentation

0 commit comments

Comments
 (0)