LAION-AI / LAION-AI/Open-Assistant

Auto generate dialogues about definitions and translations using Wikidata

Open
#2,195 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data
Dominant language
Python
Stars
37.4k
Forks
3.3k
PR merge metrics
No merged PRs in 30d

Description

Wikidata Lexemes and the description field that exists for many data objects could be easily used to automatically create short dialogues with a standardized structure like this:

A: Whats the definition of {X}
B The definition is {Y}, but it can also mean {Z}

You can also use other fields in the dataset like synonyms to expand the dataset and you can easily create dialogues about word meanings and translations.

Here is a simple query to give you an impression how the lexeme data looks:

https://query.wikidata.org/#SELECT%20%3Flexeme%20%3Flemma%20%3Fsense%20%3Fgloss%20WHERE%20%7B%0A%20%20%3Flexeme%20dct%3Alanguage%20wd%3AQ1860%3B%20%23%20English%20language%0A%20%20%20%20%20%20%20%20%20%20wikibase%3Alemma%20%3Flemma%3B%0A%20%20%20%20%20%20%20%20%20%20ontolex%3Asense%20%3Fsense.%0A%20%20%3Fsense%20skos%3Adefinition%20%3Fgloss.%0A%20%20FILTER%28lang%28%3Fgloss%29%20%3D%20%22en%22%29%20%23%20Filter%20only%20English%20definitions%0A%7D%0ALIMIT%2050%0A

But the Wikidata objects about Wikipedia article could be equally useful since they all have a description in many languages.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Wikidata Query Service example and inspect how this repository currently creates dialogue data; the issue names no files, tests, or entry points. A complete effort would need a decided scope for Lexemes, descriptions, synonyms, translations, and Wikipedia-object data, plus a defined way to verify the generated dialogues.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
24/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.