Update README.md
Browse files
README.md
CHANGED
|
@@ -50,7 +50,7 @@ model = AutoModel.from_pretrained("nlpaueb/sec-bert-base")
|
|
| 50 |
In order to use SEC-BERT-NUM, you have to pre-process texts replacing every numerical token with [NUM] pseudo-token.
|
| 51 |
Below there is an example how you can pre-process a simple sentence. This approach is quite simple, feel free to modify it to your needs.
|
| 52 |
|
| 53 |
-
```
|
| 54 |
import spacy
|
| 55 |
from transformers import AutoTokenizer
|
| 56 |
|
|
|
|
| 50 |
In order to use SEC-BERT-NUM, you have to pre-process texts replacing every numerical token with [NUM] pseudo-token.
|
| 51 |
Below there is an example how you can pre-process a simple sentence. This approach is quite simple, feel free to modify it to your needs.
|
| 52 |
|
| 53 |
+
```python
|
| 54 |
import spacy
|
| 55 |
from transformers import AutoTokenizer
|
| 56 |
|