RC-A1

From UNL Wiki
(Difference between revisions)
Jump to: navigation, search
(NLization)
(The corpus500)
Line 1: Line 1:
 
The Corpus<sup>500</sup> is an experimental corpus used to prepare the initial versions of the grammar for sentence-based [[UNLization]] and [[NLization]], using [[IAN]] and [[EUGENE]], respectively. It comprises a list of 500 sentences in English and their corresponding graphs in UNL, and is supposed to cover very basic linguistic phenomena.  
 
The Corpus<sup>500</sup> is an experimental corpus used to prepare the initial versions of the grammar for sentence-based [[UNLization]] and [[NLization]], using [[IAN]] and [[EUGENE]], respectively. It comprises a list of 500 sentences in English and their corresponding graphs in UNL, and is supposed to cover very basic linguistic phenomena.  
  
== The corpus<sup>500</sup> ==  
+
== The corpus<sup>500</sup> ==
*Corpus 500 according to the complexity of the graphs
+
{| border="1" cellpadding="2" align=center
+
|+Corpus
+
!Order
+
!Description
+
!Analysis (English original)
+
!Generation (UNL)
+
|-
+
|1
+
|Temporary entries
+
|[http://www.unlweb.net/resources/corpus500/temp_org.txt temp_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/temp_unl.txt temp_unl.txt]
+
|-
+
|2
+
|Entries with no attribute or relation
+
|[http://www.unlweb.net/resources/corpus500/attribute0_org.txt attribute0_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/attribute0_unl.txt attribute0_unl.txt]
+
|-
+
|3
+
|one-attribute entries
+
|[http://www.unlweb.net/resources/corpus500/attribute1_org.txt attribute1_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/attribute1_unl.txt attribute1_unl.txt]
+
|-
+
|4
+
|two-attribute entries
+
|[http://www.unlweb.net/resources/corpus500/attribute2_org.txt attribute2_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/attribute2_unl.txt attribute2_unl.txt]
+
|-
+
|5
+
|three-attribute entries
+
|[http://www.unlweb.net/resources/corpus500/attribute3_org.txt attribute3_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/attribute3_unl.txt attribute3_unl.txt]
+
|-
+
|6
+
|one-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation1_org.txt relation1_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation1_unl.txt relation1_unl.txt]
+
|-
+
|7
+
|two-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation2_org.txt relation2_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation2_unl.txt relation2_unl.txt]
+
|-
+
|8
+
|three-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation3_org.txt relation3_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation3_unl.txt relation3_unl.txt]
+
|-
+
|9
+
|four-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation4_org.txt relation4_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation4_unl.txt relation4_unl.txt]
+
|-
+
|10
+
|five-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation5_org.txt relation5_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation5_unl.txt relation5_unl.txt]
+
|-
+
|11
+
|six-relation entries
+
|[http://www.unlweb.net/resources/corpus500/relation6_org.txt relation6_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relation6_unl.txt relation6_unl.txt]
+
|-
+
|12
+
|numbers and numerals
+
|[http://www.unlweb.net/resources/corpus500/numbers_org.txt numbers_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/numbers_unl.txt numbers_unl.txt]
+
|-
+
|13
+
|pronouns
+
|[http://www.unlweb.net/resources/corpus500/pronouns_org.txt numbers_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/pronouns_unl.txt numbers_unl.txt]
+
|-
+
|14
+
|expressions of time
+
|[http://www.unlweb.net/resources/corpus500/time_org.txt time_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/time_unl.txt time_unl.txt]
+
|-
+
|15
+
|relative clauses
+
|[http://www.unlweb.net/resources/corpus500/relatives_org.txt relatives_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/relatives_unl.txt relatives_unl.txt]
+
|-
+
|16
+
|special issues
+
|[http://www.unlweb.net/resources/corpus500/problems_org.txt problems_org.txt]
+
|[http://www.unlweb.net/resources/corpus500/problems_unl.txt problems_unl.txt]
+
|}
+
*The whole corpus in one single file
+
**[http://www.unlweb.net/resources/corpus500/corpus500_eng.txt Corpus500 in English], experimental corpus in English (500 sentences), to be manually translated to the target languages, in order to be used as the input for [[IAN]]
+
**[http://www.unlweb.net/resources/corpus500/corpus500_unl.txt Corpus500 in UNL], experimental corpus in UNL (500 graphs), to be used as the input for [[EUGENE]]
+
  
 
== Resources ==
 
== Resources ==

Revision as of 18:08, 27 July 2012

The Corpus500 is an experimental corpus used to prepare the initial versions of the grammar for sentence-based UNLization and NLization, using IAN and EUGENE, respectively. It comprises a list of 500 sentences in English and their corresponding graphs in UNL, and is supposed to cover very basic linguistic phenomena.

Contents

The corpus500

Resources

The following resources have been used to deal with Corpus 500 in English and may be used as a sample of what is expected to be provided

  • Analysis
    • EN-UNL Dictionary (English dictionary used for the UNLization of the Corpus500)
    • EN-UNL T-Grammar (Transformation grammar used for the UNLization of the Corpus500)
    • EN-UNL D-Grammar (Disambiguation grammar used for the UNLization of the Corpus500)
  • Generation

Methodology

In order to prepare the dictionaries and grammars to deal with Corpus500, follow the steps below:

UNLization

  1. Corpus
    1. Translate (manually) the sentences of the Corpus500 from English into your native language. Be as close as possible to the original, and provide one single translation for each sentence. This will be your input document file, and your goal will be to provide (automatically, through IAN) the UNL graphs for each sentence
    2. Save the translated text (without the English original) in a plain text (.txt) file with UTF-8 encoding and upload it to UNLWEB>UNLDEV>IAN>NL FILES.
  2. Dictionary
    1. Extract the word list (i.e., the set of all distinct word forms) appearing in your translation of the Corpus500.
    2. Create the NL-UNL dictionary for all the word forms following the English model of the English Analysis Dictionary. Note that you may need other features (in English, for instance, nous do not have gender or case). If so, use only the tags available at the tagset. For further information on the dictionary structure, see Dictionary Specs. For an explanation of the structure of the English dictionary, see English Dictionary.
    3. Save the NL-UNL dictionary in a plain text (.txt) file with UTF-8 encoding and upload it to UNLWEB>UNLDEV>IAN>DICTIONARIES.
  3. Grammar
    1. Create the NL-UNL (analysis) transformation grammar necessary to analyze, in UNL, the natural language sentences of the translated corpus. This grammar is the most difficult (and the actual goal) of the whole analysis task. In order to prepare the grammar, study the Grammar Specs. Next, take a look at the structure of the English Grammar for a detailed example. In many cases, it would be simpler just to localize the English grammar to your own language rather than creating a whole grammar from the scratch. The grammar is normally developed inside IAN, because we have to test it every time. But you may also prepare a draft grammar, save it in a plain text (.txt) file with UTF-8 encoding and upload it to UNLWEB>UNLDEV>IAN>T-RULES.
    2. Create the NL-UNL (analysis) disambiguation grammar in order to improve the results of the transformation and to control the process of tokenization. Again, this grammar is normally developed inside IAN (at the D-RULES tab), because we have to test it every time. Consult the English Grammar for a detailed example of a disambiguation grammar.
    3. Test the grammar against the corpus and provide the necessary changes.

NLization

  1. Corpus
    1. Upload the file corpus500_unl.txt to UNLWEB>UNLDEV>EUGENE>UNL DOCUMENT. Do not do any change to this file.
  2. Dictionary
    1. Localize the English Generation Dictionary to your language. The localized version must reflect the word list of your translated corpus. Use only the tags available at the tagset. For further information on the dictionary structure, see Dictionary Specs.
    2. Save the UNL-NL dictionary in a plain text (.txt) file with UTF-8 encoding and upload it to UNLWEB>UNLDEV>PROJECTS>EUGENE>DICTIONARIES.
  3. Grammar
    1. Export the inflectional grammar of your language from UNLARIUM>GRAMMAR>[YOUR LOCALE]>EXPORT. If the grammar of your language is not available yet, you may:
      1. Provide it through the UNLarium (only for users approved in CLEA700); or
      2. Create the inflectional paradigms only for the inflected forms appearing in the UNL-NL dictionary. In that case, follow the model available at English Inflectional Grammar. The documentation of the English grammar is available at English Inflectional Grammar (only for reference). For further information, see Inflectional paradigms.
    2. Save the inflectional grammar in a plain text (.txt) file with UTF-8 encoding and upload it to UNLWEB>UNLDEV>PROJECTS>EUGENE>RULES.
    3. Provide the UNL-NL (generation) T-grammar and D-grammar necessary to generate natural language sentences from the UNL corpus. Follow the sample instructions available for the analysis grammar.
Software