wiki:EmlsSummerSchool
close Warning: Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.

Dictionary Editor and Browser - How to make your own electronic dictionary

Aleš Horák and Adam Rambousek, Faculty of Informatics, Masaryk University, Czech Republic

European Masters in Language and Speech, 8th Summer School

http://nlp.fi.muni.cz/projects/deb2/ deb@…

Introduction

Current DEB projects

clients

How to install client packages - see DEBVisDic manual for info

DEBDict

  • Install DEBDict
  • Try searching in English or Czech (eg. word pes) dictionaries
  • You may need the dictionaries later for other tasks

DEBVisDic

DEBVisDic Manual

  • Install DEBVisDic
  • In Preferences add "English WN demo"
Task 1: Add 5-10 new synsets into the Wordnet:
  • under 'domestic animal:1'
  • under 'predator:2'
  • under 'planet:1' or 'celestial body:1'
  • under 'tree:1'
  • under 'country:1'

Dictionary Management

Open https://didone.fi.muni.cz:8000/

See the brief description of WebAdminInterface

Introduction to Relax NG, web, local

Create dictionary

  • To see the settings for your dictionary, go to dictionaries and find emls[x]

Dictionary XML schema is preset to:

<element name="entry">
        <element name="headword">
                <text/>
        </element>
        <oneOrMore>
                <element name="def">
                        <text/>
                </element>
        </oneOrMore>
        <oneOrMore>
                <element name="synonym" ref="headword">
                        <text/>
                </element>
        </oneOrMore>

        <optional>
                <element name="grammar_note">
                        <text/>
                        <attribute name="pos">
                                <text/>
                        </attribute>
                </element>
                <element name="pronounce">
                        <text/>
                </element>
                <element name="origin">
                        <text/>
                </element>
        </optional>
        <element name="author">
                <text/>
        </element>
</element>

To browse the dictionary or add new entries, you need client software - either Firefox XPI package, or web service.

Task 2: Generate dictionary web service and add five entries
  • Go to generate web service
  • Choose your dictionary from the list emls[x]
  • Click run button
  • Go to https://didone.fi.muni.cz:8001/
  • Click on the link for your dictionary
  • Add five dictionary entries

Change dictionary structure

Task 3: Change dictionary structure and generate web service again
  • PoS could be better as selectbox
  • Go to dictionaries
  • Find emlsx dictionary
  • Change XML schema. Replace current PoS definition
    <attribute name="pos">
        <text/>
    </attribute>
    

with the new one

<attribute name="pos">
     <choice>
         <value>n</value>
         <value>v</value>
         <value>a</value>
         <value>b</value>
      </choice>
</attribute>
  • Plus add one new element (for example hypernym or usage example)
  • Go to generate web service
  • Choose your dictionary from the list emls[x]
  • Click run button
  • Go to https://didone.fi.muni.cz:8001/
  • Click on the link for your dictionary
  • The PoS is changed from textbox to selectbox
  • Add five dictionary entries

XSLT changes

Task 4: Change the dictionary design by modifying XSLT template

You can choose one of the following templates:

  • Entry list (emls[x]-list.xslt) - display definition next to headword
  • Entry edit form (emlsx[x]-edit.xslt) - change the labels or translate them to your language
  • Entry preview (emls[x]-preview.xslt) - design nice preview
  • Dictionary PDF template (emls[x]-pdf.xslt) - advanced, change the look of your PDF file (XSL-FO reference)

Editing the XSLT:

  • Go to the admin interface, and select browse - xslt
  • Open the template file and save it (Ctrl+S in browser)
  • Edit the file
  • Go to the admin interface, and select upload
  • Choose your file and select xslt from the list, click upload

Conclusion

Task 5: Download XML and PDF for your dictionary
Last modified 17 years ago Last modified on Jul 3, 2007, 4:44:46 PM