Possible LN.org Application: Grammar Annotations of Texts

Started by wm.annis, June 29, 2012, 07:50:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Would you actually use the tool?

Yes
13 (100%)
No
0 (0%)

Total Members Voted: 13

Voting closed: July 06, 2012, 07:50:03 PM

wm.annis

Quote from: sfc78 on July 04, 2012, 01:08:46 PM
wm.annis, could you post the configuration you use for brat (minus anything obviously sensitive)? 

Sure.  These are in the directory $BRAT/data/Navi.  First, annotations.conf (tabs matter in the entities section):


[entities]
Noun
Adjective
Pronoun
Nominalizer
Verb
Adverb
Adposition
Conjunction
Particle
        Attributive
        Question
        Discourse
        Vocative
Interjection

[relations]
Subjective    Arg1:Verb,       Arg2:Noun|Pronoun|Nominalizer
Agentive      Arg1:Verb,       Arg2:Noun|Pronoun|Nominalizer
Patientive    Arg1:Verb,       Arg2:Noun|Pronoun|Nominalizer
Subjective    Arg1:Verb,       Arg2:Noun|Pronoun|Nominalizer
IndirectObject  Arg1:Verb,       Arg2:Noun|Pronoun
Si-Construction  Arg1:Verb,    Arg2:Noun|Pronoun
Attribute     Arg1:Adjective|Attributive,       Arg2:Noun
Predicate     Arg1:Verb,       Arg2:Noun|Adjective
Possessive    Arg1:Noun|Pronoun,  Arg2:Noun
Modal         Arg1:Verb,       Arg2:Verb
Attributive-Clause   Arg1:Attributive|Nominalizer,   Arg2:<ENTITY>, <REL-TYPE>:symmetric
Adverbial-Modification  Arg1:Adverb,   Arg2:Adverb|Verb|Adjective|Noun|Pronoun


[attributes]
Tense           Arg:Verb, Value:Present|General-Past|Proximal-Past|General-Future|Proximal-Future
Mood            Arg:Verb, Value:Indicative|Subjunctive|Imperative
Aspect          Arg:Verb, Value:Imperfective|Perfective
Affect          Arg:Verb, Value:Positive|Negative|Formal|Evidential
Number          Arg:Noun|Pronoun, Value:Singular|Dual|Trial|Plural
Case            Arg:Noun|Pronoun|Nominalizer, Value:Subjective|Agentive|Patientive|Genitive|Dative|Topical|With-Postposition
Prenoun         Arg:Noun, Value:this|that|which?


Then visual.conf:

[labels]
Noun | Noun | N
Adjective | Adjective | Adj
Pronoun | Pronoun | Prn
Nominalizer | Nominalizer | NMNL
Verb | Verb | V
Adverb | Adverb | Adv
Adposition | Adposition | Adp
Conjunction | Conjunction | Conj
Particle | Particle | PTCL
Attributive | Attributive | 'a'
Vocative | Vocative | VOC
Interjection | Interjection | Interj
NominalizedPhrase | Nominalized Phrase | Nom.Phr.

Subjective | Subjective | S
Patientive | Patientive | P
Agentive | Agentive | A

Singular | Singular | sg.
Plural | Plural | pl.
Subjunctive | Subjunctive | SBJV
Possessive | Possessive | POSS
Attribute | Attribute | ATTR
Predicate | Predicate | PRED
IndirectObject | Indirect Object | IO
Si-Construction | Si-Construction | si
Attributive-Clause | Attributive Clause | Attr. Clause | AP
Adverbial-Modification | Adverbial Modification | Modifies | Adv.

[drawing]
SPAN_DEFAULT    fgColor:black, bgColor:#EBF3F6, borderColor:darken
ARC_DEFAULT     color:black, arrowHead:triangle-5
ATTRIBUTE_DEFAULT       glyph:*

Noun       fgColor:black, bgColor:lightgreen
Pronoun    fgColor:black, bgColor:#C3D8BF
Verb       fgColor:black, bgColor:#22B5BF
Adjective  fgColor:black, bgColor:#F9C8EA
Adverb     fgColor:black, bgColor:#B5A6D3

Sìkat


Nongyu te Syulang Swokioang'itan

#22
This seems like quite an awesome tool, but I don't really understand how to use it. Now, I'm using an iPad, but I suppose it acts the same way on a computer? Can someone please tell me how to use it?
In the unwieldy situation of knowing way more grammar than vocab

`Eylan Ayfalulukanä

Irayo, ma Wm. Annis for posting the configuration for this tool. When things slow down to a dull roar here, I want to play with that tool and see what can be done with it.

Yawey ngahu!
pamrel si ro [email protected]

Sìkat

WARNING to anyone who has installed BRAT on a public-facing server: the default configuration leaves your config.py in a publicly-accessible directory, and if you added editors, it contains their usernames and passwords in PLAIN TEXT.  If your server is configured anything like mine, it doesn't attempt to execute .py files, and will just dump them to the browser as a text file.

If you're running Apache 2, you can add this to the .htaccess that BRAT drops in its root directory in order to prevent compromise:


<Files ~ "^config\.py$">
   Order allow,deny
   Deny from all
   Satisfy All
</Files>


I don't know why the BRAT folks didn't hash the passwords or at least drop the config.py in a subdirectory (secured with a suitable .htaccess)...

(EDITED to add:) Apparently this was fixed 2 months ago, but didn't make it to the release I downloaded.


Sìkat

And another issue: once you upload a text file into BRAT and start adding annotations to a file, do NOT attempt to edit the text file in any manner, because it will mess up the annotations horribly.  I expect that this is by design, since the software doesn't know where the annotations need to go after the file has been edited, and the authors of BRAT didn't expect that files would be edited after the fact.

Unfortunately, yesterday I learned this lesson the hard way in the middle of a lesson between myself and Alìm Tsamsiyu.

This means that the only collaborative changes that can be made are to the annotations themselves, and not to the text.  This is problematic if (like me) you're using this in a one-on-one learning situation and want to be able to add translations after you've finished annotating it.  However, it's still a good tool for its intended purpose; I expect I'll just need to install something else alongside it, like Etherpad, in order to show completed translations.