Skip to content

Commit

Permalink
Generate
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccrae committed Sep 9, 2024
1 parent caaf77d commit 84f1b7f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,18 @@ <h1 id="xml">XML</h1>
&lt;/LexicalEntry&gt;
&lt;/Lexicon&gt;
&lt;/LexicalResource&gt;</code></pre>
<p><strong><em>Pronunciation</em></strong></p>
<p>Since 2021, the schema has the ability to represent the pronunciation of lemmas.</p>
<p>This is in the <code>&lt;Pronunciation&gt;</code> element, which gives the IPA text. It has the following attributes: * <code>variety</code> uses the IETF language tags to indicate dialect, for example encoding British English in IPA as <code>en-GB-fonipa</code> * <code>notation</code>: can encode further information such as indicating a particular dialect (this was <code>notes</code> in the paper) * <code>phonemic</code>: indicates whether the transcription is phonemic (‘true’) or phonetic (<code>false</code>), defaulting to ‘false’ * <code>audio</code>: gives the URL of an audio file of the pronuncation</p>
<p>An example of encoding is given below:</p>
<pre><code> &lt;LexicalEntry id=&quot;ex-rabbit-n&quot;&gt;
&lt;Lemma writtenForm=&quot;rabbit&quot; partOfSpeech=&quot;n&quot;/&gt;
&lt;Pronunciation variety=&quot;en-GB-fonxsamp en-US-fonxsamp&quot;
audio =&quot;https://path/rabbit.flac&quot;&gt;&#39;r\{bIt&lt;/Pronunciation&gt;
&lt;Pronunciation variety=&quot;en-AU-fonxsamp&quot; notation=&quot;weak vowel merger&quot;
audio =&quot;https://path/rabbit1.flac&quot;&gt;&#39;r\{b@t&lt;/Pronunciation&gt;
&lt;/Lemma&gt;
&lt;/LexicalEntry&gt;</code></pre>
<p><strong>Wordnet Extensions</strong></p>
<p>A file may contain a lexicon extension which serves to augment an existing lexicon with new lexical entries, synsets, senses, relations, etc. They are defined much like regular lexicons, but the <code>&lt;Extends&gt;</code> element specifies the ID and version of the base lexicon:</p>
<pre><code> &lt;LexiconExtension id=&quot;ewn-cs-example&quot;
Expand Down

0 comments on commit 84f1b7f

Please sign in to comment.