Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
10
20
english
stringlengths
32
4.78k
tool_phrases
listlengths
0
38
tool_result
stringlengths
0
1.25k
reasoning
stringlengths
266
13.4k
translation
stringlengths
196
3.6k
messages
listlengths
3
5
tools
listlengths
1
1
source
stringclasses
2 values
markdown
stringclasses
51 values
num_phrases
int64
0
38
num_found
int64
0
21
pristine-6676
## Mawuli Bruce Spetua, a man who is twenty-seven years old, and he has a UCC certificate, and he wants to serve this nation as a soldier. He is a man who has courage and a forward-moving mind, but all his hope was destroyed when they removed him from the army recruitment. As the report shows, Mawuli used all his oppo...
[ "certificate", "forward moving mind", "hope", "very sad issue", "many people", "things going on", "things that are proper", "life opportunities", "youth" ]
Twi lookup results (3 of 9 phrases found): - certificate -> abodin krataa - hope -> Anidasoɔ - youth -> mmabunu Not found (translate from your own knowledge): forward moving mind, very sad issue, many people, things going on, things that are proper, life opportunities
1. The relative clause 'a man who is twenty-seven years old' maps to 'ɔbarima a wadi mfeɛ aduonu nson', using the perfective verb form 'wadi' (he has eaten/reached) to express age in Twi. 'Certificate' is translated compoundly as 'abodin krataa' (degree document). The third-person singular pronoun 'ɔ-' serves as subjec...
## Mawuli Bruce Spetua, ɔbarima a wadi mfeɛ aduonu nson, na ɔwɛ UCC abodin krataa, na ɔpɛ sɛ ɔkɔsom ɔman yi sɛ asrafoɔ. Ɔyɛ ɔbarima a ɔwɔ akokoduru ne adwene a ɛkɔ anim, nanso n'anidasoɔ no nyinaa sɛeɛ bere a woyii no fii asraafoɔ adwumayɛ no mu no. Sɛnea amanneɛbɔ kyerɛ no, Mawuli de n'akwannya nyinaa kɔdii dwuma, ɔk...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
heading,italic_sentence
9
3
pristine-2333
In the month of April, something was happening in politics and the football world. It was a time Mr. Opoku-Agyemang revealed himself as the one who would help John Mahama as his running mate in the NDC political party. This is the second time this gentleman is associating himself with this task. While this was happenin...
[ "politics", "football world", "political party", "gentleman", "task", "management team", "both politics and football", "governance", "sports", "opoku agyemang also" ]
Twi lookup results (7 of 10 phrases found): - politics -> amanyɔsɛm - football world -> Bɔɔlbɔ wiase - gentleman -> ɔbarima suban pa | ɔbarima a obuo wɔ hɔ | ɔbarima mapa - task -> dwumadie | adwuma | ɛyɛkyerɛ - management team -> akandifoɔ kuo - governance -> amammuo - sports -> Agorɔ Not found (translate from your ow...
1. 'In the month of April' translates to 'Wɔ Oforisuo bosome mu' using the locative preposition 'wɔ' and 'mu' (inside/in). 'Na asɛm bi rekɔ so' uses the continuous prefix 're-' with 'kɔ so' (happening/going on) and the past marker 'na' to match past continuous 'was happening'. 'Politics' is translated as 'amanyɔsɛm' an...
Wɔ Oforisuo bosome mu, na asɛm bi rekɔ so wɔ amanyɔsɛm mu ne bɔɔlobɔ wiase. Na ɛyɛ bere a ɔpanyin Opoku-Agyemang bɛdaa ne ho adi sɛ ɔno na ɔrebɛboa John Mahama sɛ ne running mate wɔ NDC amanyɔkuo no mu. Eyi ne mprenu a ɔpanyin yi reka ne ho wɔ saa adwuma yi mu. Bere a eyi rekɔ so no, na bɔɔlobɔ nso rekɔ so wɔ n’akwan n...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
null
10
7
pristine-153
It was big work in this nation's history. On August 15, 2025, Accra city will stand there to show that all the people want to honor the eight heroes. As the reporters show, the accident that happened is what made the whole nation become silent. The state funeral will be the first that will stay for many years in people...
[ "big work", "accra city", "people", "eight heroes", "heroes", "accident that happened", "state funeral", "preparations", "and today", "sadness only", "work and their efforts" ]
Twi lookup results (4 of 11 phrases found): - people -> nnipa - heroes -> mmanimbam | mmanimfoɔ | akatakyie - state funeral -> ɔman ayie | ɔman mu ayiyɛ | ɔmanfoɔ ayi - preparations -> ahosiesie Not found (translate from your own knowledge): big work, accra city, eight heroes, accident that happened, and today, sadness...
1. The dummy/inanimate pronoun subject 'It was' translates to 'Ɛyɛɛ' with the past tense suffix '-ɛ' attached to the verb 'yɛ' (to be/do). 'Big work' is translated post-nominally as 'adwuma kɛseɛ' (noun + adjective). The prepositional phrase 'in this nation's history' maps to 'wɔ ɔman yi abakɔsɛm mu', where 'wɔ' functi...
Ɛyɛɛ adwuma kɛseɛ wɔ ɔman yi abakɔsɛm mu. Wɔ August 15, 2025, Accra kurowpɔn no bɛgyina hɔ kyerɛ sɛ ɔmanfoɔ nyinaa pɛ sɛ wɔdi wɔn heroes nwɔtwe no anuonyam. Sɛnea amanneɛbɔfoɔ kyerɛ no, akwanhyia a ɛkɔɔ so no yɛ nea ɛmaa ɔman no nyinaa yɛɛ dinn. State funeral no bɛyɛ nea ɛdi kan a ɛbɛka mfeɛ pii wɔ nnipa akoma mu. Blac...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
null
11
4
ghanachat-en2tw-4568
## According to the latest update on the seventh of February in the year twenty twenty, a memorial service celebrating the lives of Lakers legend Kobe Bryant and his daughter Gianna will be held on the morning of February twenty-four at Staples Center in Los Angeles. The date February twenty-four wattsas chosen becaus...
[ "latest update", "memorial service", "daughter", "jersey numbers", "fans", "gifts and flowers", "items", "family", "flowers", "plants near", "date for the memorial", "planning and coordination", "other memorials", "last year", "rapper" ]
Twi lookup results (6 of 15 phrases found): - daughter -> babaa - fans -> amafom | akyidifoɔ | praprafoɔ - items -> nneɛma - family -> abusua - flowers -> nhwiren - rapper -> nnwomtofoɔ | rap-tofoɔ | agorɔtofoɔ Not found (translate from your own knowledge): latest update, memorial service, jersey numbers, gifts and flo...
1. 'According to' maps to the frame structure 'Sɛnea ... kyerɛ no' ('As ... indicates'). 'The latest update' is rendered as 'nsɛm a aba foforo' ('news/information that has come freshly'). The passive construction 'will be held' is expressed using the impersonal pronoun 'wɔ-' combined with the future tense prefix 'bɛ-',...
## Sɛnea nsɛm a aba foforo wɔ February 27th kyerɛ no, wɔbɛyɛ nkaeɛ som a wɔde bɛhyɛ Lakers anansesɛm Kobe Bryant ne ne babaa Gianna asetena ho afahyɛ wɔ February 24th anɔpa wɔ Staples Center wɔ Los Angeles. February aduonu nnan ne da a Watts paw efisɛ ɛda basketball atade nɔma a Kobe (nɔma aduonu anan) ne Gianna (nɔma...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
ghana_chat_en2tw
heading,italic_sentence
15
6
pristine-3346
## Today is the sixteenth day of June, the year two thousand and twenty-two. | # | Sentence | |---|---| | 1 | This morning, news came from Bibiani Old Town that a disaster has hit a family. | | 2 | Their house caught fire, and all things turned to ash. | | 3 | As the report says, this disaster has made the family's mi...
[ "today", "morning", "forgiveness of sins", "many people" ]
Twi lookup results (2 of 4 phrases found): - today -> ɛnnɛ - morning -> anɔpa | anɔpa hene | anɔpa krado Not found (translate from your own knowledge): forgiveness of sins, many people
1. 'Ɛnɛ' means 'today' and acts as the subject, followed by the copula verb 'yɛ' (is). 'June da a ɛtɔ so du-nsia' uses the ordinal construction 'ɛtɔ so' (nth) for 'sixteenth' (du-nsia). 'afe' (year) is followed by 'mpem-mmienu' (two thousand: mpem = thousands, mmienu = two) and 'aduonu-mmienu' (twenty-two). 2. 'Anɔpa y...
## Ɛnɛ yɛ June da a ɛtɔ so du-nsia, afe mpem-mmienu ne aduonu-mmienu. | # | Sentence | |---|---| | 1 | Anɔpa yi, amanneeɛ baeɛ a ɛfiri Bibiani Old Town kyerɛ sɛ asiane bi ato abusua bi. | | 2 | Wɔn fie adan ogya, na nneɛma nyinaa adane nso. | | 3 | Sɛnea amanneɛbɔ no kyerɛ no, asiane yi ama abusua no adwene ayɛ wɔn nw...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
heading,table
4
2
ghanachat-en2tw-1836
## BEFORE THE NATIONAL HEALTH INSURANCE SCHEME WAS ESTABLISHED, GHANA'S HEALTHCARE SYSTEM FACED SIGNIFICANT CHALLENGES. | # | Sentence | |---|---| | 1 | One major issue was the uneven distribution of medical facilities throughout the country. | | 2 | In one thousand, nine hundred and ninety, there were only eighteen,f...
[ "challenges", "one major issue", "uneven distribution", "medical facilities", "cash and carry", "rural communities", "efforts", "contributors", "universal health coverage", "citizens and visitors", "study you mentioned", "gender", "variables", "generalizability" ]
Twi lookup results (4 of 14 phrases found): - challenges -> nsɛnnennen - efforts -> mmɔdenbɔ - gender -> bɔbeasu | barima ne baa su | nna su - variables -> nsakraeɛ | agyae-agyae | nsakyerae-mmaa Not found (translate from your own knowledge): one major issue, uneven distribution, medical facilities, cash and carry, rur...
1. The temporal conjunction 'Before' maps directly to 'Ansa na... no' framing the subordinate clause. Passive 'was established' is rendered using the active impersonal Twi form 'wɔde... resi hɔ' (literally 'they were placing it up'). The past state in the main clause ('faced') uses past marker 'na' combined with 'hyia'...
## ANSA NA WƆDE ƆMAN AKWAHOSAN INSURANCE NHYEHYƐE NO RESI HƆ NO, NA GHANA AKWAHOSAN HO NHYEHYƐE NO HYIA NSƐNNENNEN AKƐSE. | # | Sentence | |---|---| | 1 | Nsɛm titiriw biako ne nnuruyɛbea ahorow a wɔankyekyɛ no pɛpɛɛpɛ wɔ ɔman no mu nyinaa. | | 2 | Wɔ apem, ahankron aduɔkron mu no, na ayaresabea mpa dunan, ahannan adu...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
ghana_chat_en2tw
heading_caps,table
14
4
pristine-1684
**If we are to tell the history concerning the issues that happened in the town of Shia, it starts from the understanding between a GIS official and a woman who is a Shia native. The issues that happened are those that are amazing and scary. It starts because someone who is a junior officer at the GIS office interacted...
[ "issues that happened", "gis official", "office", "gis elder", "trouble", "personal issues", "national issue", "children who were there", "many government workers", "lives of the citizenry", "politics", "correct journey" ]
Twi lookup results (3 of 12 phrases found): - office -> adwumayɛbea - national issue -> Ɔman mu nsɛm - politics -> amanyɔsɛm Not found (translate from your own knowledge): issues that happened, gis official, gis elder, trouble, personal issues, children who were there, many government workers, lives of the citizenry, c...
1. The conditional clause 'If we are to tell' is introduced by 'Sɛ... a' framing 'yɛbɛka' (we will tell/say, with future prefix 'bɛ-'). 'concerning' maps to 'a ɛfa' (which touches/relates to). 'issues that happened' becomes 'nsɛm a ɛkɔɔ so' using past tense 'kɔɔ so' (went on). 'it starts from' maps to 'ɛfiri' (it comes...
**Sɛ yɛbɛka abakɔsɛm a ɛfa nsɛm a ɛkɔɔ so wɔ Shia kuro no mu a, ɛfiri nteaseɛ a ɛbaa GIS ɔman adwumayɛni bi ne ɔbaa bi a ɔyɛ Shia kuro ba no ntam. Nsɛm a ɛkɔɔ so no yɛ nea ɛyɛ nwanwa na ɛyɛ hu. Ɛfiri sɛ obi a ɔyɛ junior officer wɔ GIS adwumayɛbea hɔ no ne ɔbaa bi a ɔte hɔ no dii nkitaho. **Nanso, ɛnyɛ agorɔ na ɛbɛyɛɛe....
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
bold_paragraph,bold_sentence
12
3
pristine-3770
## WE ARE TALKING ABOUT THE FIFTEEN YEARS THAT HAVE PASSED, TEMA YOUTH FC'S HISTORY IS ONE THAT IS WONDERFUL IN GHANA FOOTBALL. Palmer, who is the elder who looks after this team, has given his life and his money to football. In the things that have been put there, Palmer said, "Sometimes, it is foolishness." However,...
[ "fifteen years", "life and his money", "issues", "president", "histories" ]
Twi lookup results (3 of 5 phrases found): - issues -> nsɛm - president -> ɔmampanyin - histories -> tetefoɔ nsɛm | abakɔsɛm ahodoɔ | nkɔmhyɛ-nsɛm tetetete Not found (translate from your own knowledge): fifteen years, life and his money
1. The progressive aspect prefix 're-' on 'Yɛreka' (we are talking) corresponds to 'We are talking'. 'mfeɛ du-num' translates 'fifteen years' ('mfeɛ' = years, 'du-num' = fifteen). The relative clause framed by 'a ... no' in 'a atwam no' translates 'that have passed'. In Twi possessive structures, 'Tema Youth FC abakɔsɛ...
## YƐREKA MFEƐ DU-NUM A ATWAM NO, TEMA YOUTH FC ABAKƆSƐM YƐ NEA ƐYƐ NWONWA WƆ GHANA BƆƆLOBƆ MU. Palmer, a ɔyɛ ɔpanyin a ɔhwɛ saa kuo yi so, de ne nkwa ne ne sika nyinaa ama bɔɔlobɔ. Wɔ nsɛm a wɔaka ato hɔ no, Palmer kae sɛ, "Ɛtɔ mmere bi a, ɛyɛ nkwaseasɛm. " Nanso, nsɛm no kyerɛ sɛ na ɛnyɛ nkwaseasɛm, mmom na ɛyɛ aset...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
heading_caps,bold_sentence
5
3
pristine-6344
One night, we heard some matters on the radio that made us all ponder well. The host who is on Drive Time on Joy, Dr. Yaw Osafo, who is a specialist in Clinical Biochemistry and Metabolic Medicine, is the one working there. However, a matter that is coming up is a big dispute. The Ethiopian Airline plane that crashed, ...
[ "one night", "matters", "host", "one working there", "plane that crashed", "people", "ghanaians", "money that we took", "pride", "international talks" ]
Twi lookup results (4 of 10 phrases found): - matters -> nsɛm | nneɛma | asem ahorow - host -> Dwumadiwura - people -> nnipa - pride -> ahoahoa | ahantan | anigyeɛ mu ahoahoa Not found (translate from your own knowledge): one night, one working there, plane that crashed, ghanaians, money that we took, international tal...
1. 'One night' translates to 'Anadwo bi' (time adverbial). 'We heard' uses the 1st person plural subject concord prefix 'yɛ-' attached to the past tense verb 'tee' (heard). 'matters' is plural 'nsɛm' (from singular 'asɛm'). The relative particle 'a' connects to the causative construction 'ɛmaa yɛn nyinaa' (made us all)...
Anadwo bi, yɛtee nsɛm bi wɔ radio so a ɛmaa yɛn nyinaa susuw yie. Ɔkannifoɔ a ɔwɔ Drive Time on Joy, Dr. Yaw Osafo, a ɔyɛ specialist wɔ Clinical Biochemistry ne Metabolic Medicine no, na ɔdi dwuma wɔ hɔ. Nanso, asɛm bi a ɛreba yi ɛyɛ akyinnyegyeɛ kɛseɛ. Ethiopian Airline hyɛn a ɛhwee aseɛ no, ɛyɛ asɛm a ɛmaa obiara wer...
[ { "role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool with the key English noun phrases of the text to get reference Twi terms from the dictionary. Then reason step by step about the grammar, idioms and word choice, using the dictionar...
[ { "type": "function", "function": { "name": "lookup_twi_translation", "description": "Look up Twi (Akan) translations of English noun phrases in an offline English-Twi dictionary (Gemini translations from AfriSpeech/shola-machine-translations). Pass the key noun phrases of the text you need to t...
pristine
null
10
4
pristine-5024
"## LOOKING AT THE FIGURES REGARDING THE DISASTER CAUSED BY THE WATER, IT IS SURPRISING HOW THINGS T(...TRUNCATED)
[ "$ 10bn", "many people", "one person", "money" ]
"Twi lookup results (1 of 4 phrases found):\n- money -> sika\nNot found (translate from your own kno(...TRUNCATED)
"1. 'Yɛrekɔ' pairs the 1st person plural subject concord 'yɛ-' with the progressive aspect prefix(...TRUNCATED)
"## YƐREKƆ AKONTAABUO A ƐFA SAA AMANEƐ A ƐBAA NSUO NO HO NO, ƐYƐ NWANWA SƐNEA NA NNEƐMA TE.(...TRUNCATED)
[{"role":"system","content":"You are an expert English-to-Twi (Akan) translator. First call the look(...TRUNCATED)
[{"type":"function","function":{"name":"lookup_twi_translation","description":"Look up Twi (Akan) tr(...TRUNCATED)
pristine
heading_caps,bullet_list,bold_sentence
4
1
End of preview. Expand in Data Studio

Twi Translation Tool-Calling with Reasoning

Author: Ghana Open AI
Supported by: Ghana NLP

SFT data that teaches an LLM to translate English into Twi (Akan) like a careful translator:

  1. look up the key English noun phrases in a dictionary (lookup_twi_translation tool call),
  2. read the results (a tool message; phrases that aren't in the dictionary come back empty),
  3. reason about grammar, idioms and word choice, using the dictionary terms where they fit,
  4. translate.

Each row is a full agent trajectory in the standard chat format with tools:

system -> user -> assistant(tool_calls) -> tool(results) -> assistant(reasoning_content + content)

Columns

For browsing, each row has the trajectory as flat columns, in order:

column content
english source text
tool_phrases phrases the model looks up (the tool-call arguments)
tool_result what the tool returns (fed back to the model)
reasoning step-by-step linguistic reasoning, written after the lookup
translation gold Twi translation

messages + tools hold the same content in the chat format used for training. The reasoning is in the final assistant message's reasoning_content field, separate from content.

Where each part comes from

Part Source
English text, reasoning, Twi translation English→Twi rows (pristine, ghana_chat_en2tw) of ghananlpcommunity/twi-english-reasoning-translation. The Twi side is the gold human reference, and the reasoning explains it
Tool-call phrases the English phrases the reasoning quotes (e.g. 'national progress' is 'ɔman nkɔso'), kept only if they occur in the source text and are noun phrases (spaCy), with articles and possessives removed, at most 4 words
Tool results those phrases looked up in an offline English→Twi dictionary of 478,822 phrases, built from the Gemini translations in AfriSpeech/shola-machine-translations (gemini-3.6-flash-one, falling back to up to 3 options from gemini-3.6-flash)

Because the tool results come from the same dictionary the deployed tool uses, a model trained on this data receives exactly the kind of tool output it saw in training. Dictionary entries are machine candidates, not verified translations, so the reasoning and gold translations sometimes use a different term. That teaches the model to treat lookups as hints, not ground truth.

Splits

split examples with tool call phrases looked up found in dictionary
train 15,134 14,431 139,747 41.2%
validation 332 322 3,166 40.6%
test 538 513 4,864 40.8%

Splits are a stable hash of the source row id. About 70% of rows carry Markdown formatting (headings, lists, tables, bold and italic) that the translation preserves.

Example (abridged)

{"messages": [
  {"role": "system", "content": "You are an expert English-to-Twi (Akan) translator. First call the lookup_twi_translation tool ..."},
  {"role": "user", "content": "Translate the following English text into Twi (Akan). Return only the translation with no additional text.\n\n..."},
  {"role": "assistant", "content": "", "tool_calls": [{"id": "call_000123", "type": "function",
    "function": {"name": "lookup_twi_translation", "arguments": {"phrases": ["cocoa heaps", "proper fermentation", "inspection"]}}}]},
  {"role": "tool", "tool_call_id": "call_000123", "name": "lookup_twi_translation",
   "content": "Twi lookup results (2 of 3 phrases found):\n- cocoa heaps -> koko sumie | koko ekuo | koko boaboa ano\n- inspection -> nhwehwɛmu\nNot found (translate from your own knowledge): proper fermentation"},
  {"role": "assistant", "reasoning_content": "1. 'Sɛnea nhwehwɛmu kyerɛ no' translates 'According to research' ...", "content": "Sɛnea nhwehwɛmu kyerɛ no, ..."}
 ],
 "tools": [{"type": "function", "function": {"name": "lookup_twi_translation", "parameters": {"type": "object", "properties": {"phrases": {"type": "array", "items": {"type": "string"}}}, "required": ["phrases"]}}}],
 "id": "...", "source": "pristine", "markdown": "heading,bullet_list", "num_phrases": 3, "num_found": 2}

reasoning_content is the standard field that chat templates (e.g. Gemma 4, Qwen 3) render as the model's thinking. With Gemma 4, render with enable_thinking=True so the thought channel opens after the tool result.

Code

The dataset builder, the offline dictionary, the training script and a ready-to-run deployment runtime (tool-call parsing → dictionary lookup → result fed back → translation, with transformers, vLLM or an HTTP API) are in the accompanying GitHub repository.

Licence

CC-BY-NC-4.0, inherited from both sources. Non-commercial use only.

Downloads last month
78

Models trained or fine-tuned on ghanaopenai/twi-translation-tool-calling