Instructions to use rajaatif786/TickerExtraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rajaatif786/TickerExtraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="rajaatif786/TickerExtraction", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("rajaatif786/TickerExtraction") model = AutoModel.from_pretrained("rajaatif786/TickerExtraction", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
0e34f97
1
Parent(s): b726365
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
|
| 2 |
|
| 3 |
-
from transformers import BertModel
|
| 4 |
nltk.download('punkt')
|
| 5 |
import pandas as pd
|
| 6 |
import string
|
|
@@ -38,6 +37,7 @@ import torch.nn as nn
|
|
| 38 |
|
| 39 |
from transformers import *
|
| 40 |
import time
|
|
|
|
| 41 |
|
| 42 |
nltk.download('punkt')
|
| 43 |
nltk.download('wordnet')
|
|
|
|
| 1 |
|
| 2 |
|
|
|
|
| 3 |
nltk.download('punkt')
|
| 4 |
import pandas as pd
|
| 5 |
import string
|
|
|
|
| 37 |
|
| 38 |
from transformers import *
|
| 39 |
import time
|
| 40 |
+
from transformers import BertModel
|
| 41 |
|
| 42 |
nltk.download('punkt')
|
| 43 |
nltk.download('wordnet')
|