All examples By author By category About

fabiovalse

News DSL

This simple editor aims to explain how a Domain Specific Language (DSL) can be used and which is its purpose. This use case is about News tagging, an important task within a News organization (some research experiments have been carried out by the NYT research lab).

The language present in the editor enables users to annotate named entity such as a person, organization, place, date and event. For example, the annotation about the date-time 4.57 del 21 luglio 1969 can be made by marking the text with double angle brackets <<> followed by round brackets with a T inside, (T), denoting an entity of class time. The resulting annotation is therefore <<4.57 del 21 luglio 1969>>(T).

In this experiment 5 classes can be used: Time denoted by T, Person P, Organization O, Location L, Event E and no label can be used for a generic thing.

Moreover, an identifier can be included within the round brackets, immidiately after the letter denoting the class, for univocally identifying it with an external data source such as Wikidata. For instance, as in the first annotation, the person Oriana Fallaci can be annotated like <>(P https://www.wikidata.org/wiki/Q153700).