Instructions to use nlpaueb/sec-bert-shape with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlpaueb/sec-bert-shape with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="nlpaueb/sec-bert-shape")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("nlpaueb/sec-bert-shape") model = AutoModelForPreTraining.from_pretrained("nlpaueb/sec-bert-shape", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,9 +20,9 @@ widget:
|
|
| 20 |
|
| 21 |
SEC-BERT is a family of BERT models for the financial domain, intended to assist financial NLP research and FinTech applications.
|
| 22 |
SEC-BERT consists of the following models:
|
| 23 |
-
* [SEC-BERT-BASE](https://huggingface.co/nlpaueb/sec-bert-base)
|
| 24 |
-
* [SEC-BERT-NUM](https://huggingface.co/nlpaueb/sec-bert-num)
|
| 25 |
-
* SEC-BERT-SHAPE (this model):
|
| 26 |
(e.g. , '53.2' becomes '[XX.X]' and '40,200.5' becomes '[XX,XXX.X]').<br>
|
| 27 |
|
| 28 |
## Pre-training corpus
|
|
|
|
| 20 |
|
| 21 |
SEC-BERT is a family of BERT models for the financial domain, intended to assist financial NLP research and FinTech applications.
|
| 22 |
SEC-BERT consists of the following models:
|
| 23 |
+
* [SEC-BERT-BASE](https://huggingface.co/nlpaueb/sec-bert-base): Same architecture as BERT-BASE trained on financial documents.
|
| 24 |
+
* [SEC-BERT-NUM](https://huggingface.co/nlpaueb/sec-bert-num): Same as SEC-BERT-BASE but we replace every number token with a [NUM] pseudo-token handling all numeric expressions in a uniform manner, disallowing their fragmentation)
|
| 25 |
+
* SEC-BERT-SHAPE (this model): Same as SEC-BERT-BASE but we replace numbers with pseudo-tokens that represent the number’s shape, so numeric expressions (of known shapes) are no longer fragmented.<br>
|
| 26 |
(e.g. , '53.2' becomes '[XX.X]' and '40,200.5' becomes '[XX,XXX.X]').<br>
|
| 27 |
|
| 28 |
## Pre-training corpus
|