Token Classification
PEFT
Safetensors
GLiNER2
English
lora
finance
stocks
wallstreetbets
reddit
ner
named-entity-recognition
information-extraction
Instructions to use StephanAkkerman/stock-recognizer-gliner2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use StephanAkkerman/stock-recognizer-gliner2-base with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("fastino/gliner2-base-v1") model = PeftModel.from_pretrained(base_model, "StephanAkkerman/stock-recognizer-gliner2-base") - GLiNER2
How to use StephanAkkerman/stock-recognizer-gliner2-base with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("StephanAkkerman/stock-recognizer-gliner2-base") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!