transformers pytorch llama text-generation license:llama2 autotrain_compatible endpoints_compatible text-generation-inference region:us
---
license: llama2
pipeline_tag: text-generation
---

This is a model that extracts biographical information on historical actors and writes it in Danish to a CSV file in the [Fichoz](https://bases.hypotheses.org/fichoz/fichoz-fundamentals) format for the database [Nordiske Folk](https://www.gunnarwknutsen.no/nordiske-folk-nofo/) (NoFo). 
It is based on [CodeLlama-13B-instruct](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf), and has been trained on 400 hundred short biographies in various languages.

## How to prompt:

Instruction:

You are a Danish research assistant. Please write the information provided by the user as CSV lines, using the following format:

\<Name\>;\<Event\>;\<Place\>;\<Year\>=\<Month\>=\<Day\>;\<End Year\>=\<End Month\>=\<End Day\>

Include only events with a known year.  \n\nInclude end date only if stated, otherwise leave blank. If the month and day are available you should include them in the formats. Otherwise use "=00=00" to indicate their absence. 

Instead of = to denote dates use \< to denote before and \> to denote after, such as 1525\<05\<12 for before May 12th 1525, or 1525\>05\>12 for after May 12th 1525. Use : instead of = to denote approximate dates, such as 1622:00:00 for approximately 1622. 

Write only in modern Danish, translating when necessary. Use modern Danish spelling and capitalization.

Input:

[Biographical text here]

Output:

[CSV output comes here]