freme-project / e-services

Apache License 2.0
1 stars 1 forks source link

[e-Translation] Translated sentences contain terms annotations #43

Closed borriellom closed 7 years ago

borriellom commented 7 years ago

When chaining services and e-Terminology is invoked before e-Translation, the latter inserts terms annotations in the target sentence .

I don't know if that is how it is supposed to work or if it is an actual issue.

Example

Sentence to be translated

Grab your camera and explore the popular ecological parks for which this area is well known, like Bray Head.

Response from e-Translation when invoked as first service

@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix nif:   <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .

<http://freme-project.eu/#char=0,108>
        a                    nif:String , nif:RFC5147String , nif:Context ;
        nif:beginIndex       "0"^^xsd:nonNegativeInteger ;
        nif:endIndex         "108"^^xsd:nonNegativeInteger ;
        nif:isString         "Grab your camera and explore the popular ecological parks for which this area is well known, like Bray Head." ;
        itsrdf:mtConfidence  "0.494345701689361" ;
        itsrdf:target        "Unter Ausschluss der Öffentlichkeit zu prüfen, den sie für die Umwelt in diesem Bereich, wie allgemein bekannt ist, Bray."@de .

Response from e-Translation when invoked after e-Terminology (just a snippet including the Context resource)

<http://freme-project.eu/#char=0,108>
        a                    nif:String , nif:RFC5147String , nif:Context ;
        nif:beginIndex       "0"^^xsd:nonNegativeInteger ;
        nif:endIndex         "108"^^xsd:nonNegativeInteger ;
        nif:isString         "Grab your camera and explore the popular ecological parks for which this area is well known, like Bray Head." ;
        itsrdf:mtConfidence  "0.39248279047169304" ;
        itsrdf:target        "Die <g its-term=\"Reproduktionskamera|Kamera|Raum|Kammer|Fotoapparat\">Kammer</g> <g its-term=\"Greifer\">Greifer</g>, und ihre ökologische <g its-term=\"Gelände|Region|Betriebsfläche|Fläche|Zone|Bereich|Beischlag|Gebiet|Latsch|Aufstandsfläche|Zone, Platz|Fertigungsabschnitt|Bezirk\">Fläche</g>, für die dieser <g its-term=\"parken|Parkstellung|Parken|Park|Parkanlage|Bestand|Parkfläche|Parkplatz\">Park</g> ist bekannt, wie z. b. <g its-term=\"Rubrik|Kapitel|Kopf|Fallhöhe|Düse|Kopfteil|Titel|Entfernen des Kopfes|Überschrift|Hauptseite|Ährenschieben|Hammerbär|Chef|Trichter|Ausböden|Wirbelkasten|Bezeichnung|Stauchschmieden|geköpft|ohne Kopf|Kopf einer Titelaufnahme|Kopfballspiel|Armkopf|Ofenkopf|Magnetkopf|Nähmaschinenkopf|extremitas distalis\">ohne Kopf</g> Bray <g its-term=\"Bohrloch|Brunnen|Mulde|Plichte|Vertiefung|Fangbehälter\">Vertiefung</g>."@de .
andish commented 7 years ago

Yes, this is a bug. We are working on this.

andish commented 7 years ago

This should be resolved. Please check,

borriellom commented 7 years ago

Yes, it's fixed. Thank you!