How to use Sowrabhm/fintext-extractor with GLiNER2:
from gliner2 import GLiNER2 model = GLiNER2.from_pretrained("Sowrabhm/fintext-extractor") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result)
The community tab is the place to discuss and collaborate with the HF community!