Version 15 (modified by 17 years ago) (diff) | ,
---|
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
- Dictionary Writing Systems slides
Current DEB projects
- DEBDict, web
- DEBVisDic, VisualBrowser
- PRALED, CPA
How to install client packages - see DEBVisDic manual for info
DEBDict
- Install DEBDict
- Try searching in English or Czech dictionaries
- You may need the dictionaries later for other tasks
DEBVisDic
- Install DEBVisDic
- In Preferences add "English WN demo"
Task 1: Add x new synsets into the Wordnet
Dictionary Management
Open https://didone.fi.muni.cz:8000/ (login and password: emls)
See the brief description of WebAdminInterface
Introduction to Relax NG, web, local
Create dictionary
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" > <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>
Task 2: Generate dictionary web service and add several entries
- Go to generate web service
- Choose your dictionary from the list emls1-5
- Click run button
- Go to https://didone.fi.muni.cz:8001/
- Click on the link for your dictionary
- Add several 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 emls1-5
- 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 several dictionary entries
XSLT changes
Task 4: Change the dictionary design by modifying XSLT template
You can choose one of the following templates:
- Entry list (emls1-list.xslt) - display definition next to headword
- Entry edit form (emls1-edit.xslt) - change the labels or translate the to your language
- Entry preview (emls1-preview.xslt) - design nice preview
- Dictionary PDF template (emls1-pdf.xslt) - advanced, change the look of your PDF file
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
Locks
When someone is editing the entry, this entry is locked and other users are not able to change it. You can view current locks (and remove them if they are not needed anymore) at the Dictionary management - locks