# FinArcNER
## Introduction
FinArcNER is a named entity recognition model trained with mostly archival data. This repository has been produced as part of the [FIN-CLARIAH ](https://www.jyu.fi/en/projects/fin-clariah) infrastructure project. The model training and paper writing has been conducted in cooperation with the [National Archives of Finland]/(https://huggingface.co/Kansallisarkisto).
## Using the model
```python
from transformers import pipeline
model_checkpoint = "jyu-digihum/finarcner"
token_classifier = pipeline(
"token-classification", model=model_checkpoint, aggregation_strategy="simple"
)
predictions = token_classifier("'Helsingistä tuli Suomen suuriruhtinaskunnan pääkaupunki vuonna 1812.")
print(predictions)
```
## Annotation guidelines
In addition to the model and full paper, we publish annotation guidelines [in JYX](http://urn.fi/URN:NBN:fi:jyu-202501291584). For the guidelines, you may use the reference below:
APA:
```
Poso, V., Välisalo, T., Toivanen, I.,…