Views
No views yet
| Label | Description | Examples |
|---|---|---|
EXCHANGE | Centralized crypto trading platforms (CEX) | Binance, Coinbase, OKX, Bybit |
ORG | Companies, funds, banks, regulators, government agencies | BlackRock, SEC, Federal Reserve, a16z |
PERSON | Named individuals | Vitalik Buterin, Michael Saylor, CZ |
COUNTRY | Countries, regions, geopolitical blocs | United States, EU, Singapore, 中国 |
PROJECT | Blockchain networks, L1/L2 chains, DeFi protocols | Ethereum, Solana, Uniswap, Aave |
Note: Cryptocurrency tickers (BTC, ETH, USDT) are not extracted by this model — they are handled separately via symbol matching.
xlm-roberta-base| Entity type | Count | Share |
|---|---|---|
| ORG | 12,881 | 43.0% |
| PROJECT | 6,343 | 21.2% |
| COUNTRY | 3,937 | 13.1% |
| PERSON | 3,871 | 12.9% |
| EXCHANGE | 2,921 | 9.8% |
1from transformers import pipeline
2
3ner = pipeline(
4 "token-classification",
5 model="ethanzhrepo/cryptoner-xlm-roberta",
6 aggregation_strategy="simple",
7)
8
9results = ner("Binance and Coinbase are facing scrutiny from the SEC in the United States.")
10for r in results:
11 print(r["word"], "→", r["entity_group"], f"({r['score']:.2f})")1from transformers import AutoTokenizer, AutoModelForTokenClassification
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("ethanzhrepo/cryptoner-xlm-roberta")
5model = AutoModelForTokenClassification.from_pretrained("ethanzhrepo/cryptoner-xlm-roberta")
6
7inputs = tokenizer("Vitalik Buterin announced Ethereum upgrades.", return_tensors="pt")
8with torch.no_grad():
9 outputs = model(**inputs)
10
11predictions = outputs.logits.argmax(-1)[0]
12tokens = tokenizer.convert_ids_to_tokens(inputs["input_ids"][0])
13for token, pred in zip(tokens, predictions):
14 label = model.config.id2label[pred.item()]
15 if label != "O":
16 print(f"{token:20s} {label}")ORG is a broad catch-all category that includes media outlets and research divisions due to the 5-label taxonomyPROJECT, not EXCHANGE