3,543
edits
(→Terms) |
|||
Line 41: | Line 41: | ||
What is the role of these in parsing? | What is the role of these in parsing? | ||
=== | === Term Section === | ||
The main part of a taxonomy is a (very) large | The main part of a taxonomy is a (very) large list of term sections. A term section consists of list of terms in different languages and a list of properties. | ||
A term | ==== Term ==== | ||
A term can be a specific ingredient, label, language, etc, depending on the taxonomy. | |||
A term consists of two parts: a language code (see the [[Languages taxonomy]]) and one or more values. The language code determines the language of the values that follow. Thus one can find the value '''Authentic Trappist Product''' in the English language in the [[Labels taxonomy]]. | |||
==== | If a term can be translated to another language, a new term can be added for that language. For instance for the English name you might want to add the name in Afrikaans (Piesang) or Amharic (ሙዝ). | ||
==== Canonical term/value ==== | |||
Each term section identifies a primary language that is used to identify the term section This is the canonical name for the term section. Preferable this is the English term. | |||
==== Synonyms ==== | ==== Synonyms ==== | ||
For each term it is possible to add synonyms. These will be used during ingredient recognition for instance. However only the main term name will be used. For instance the Spanish translation for Banana is Plátano, and the synonym Banana has been added. | |||
==== Properties ==== | ==== Properties ==== | ||
== Implementation == | == Implementation == | ||
edits