Views
No views yet
| Metric | Accuracy |
|---|---|
| Field (26 classes) | 86.3% |
| Domain (4 classes) | 94.4% |
1from paper_classifier import PaperClassifier
2
3classifier = PaperClassifier()
4classifier.initialize()
5
6result = classifier.classify(
7 title="Attention Is All You Need",
8 abstract="The dominant sequence transduction models are based on complex recurrent or convolutional neural networks..."
9)
10
11print(result)
12# {
13# 'topic': {'id': 10209, 'name': 'Neural Machine Translation and Sequence Models', 'score': 0.87},
14# 'subfield': {'id': 1702, 'name': 'Artificial Intelligence'},
15# 'field': {'id': 17, 'name': 'Computer Science', 'score': 0.95},
16# 'domain': {'id': 3, 'name': 'Physical Sciences'}
17# }pip install paper-classifier1git clone https://github.com/jimnoneill/paper-to-field.git
2cd paper-to-field
3pip install -e .