All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.nif-21.vm Maven / Gradle / Ivy

There is a newer version: 0.4.1
Show newest version
{
    "@context": "$contextJSON",
    "@graph" : [
#foreach( $bean in $beans)
             {
             #if($bean.nifType == "CONTEXT")
             "@id" : "$bean.referenceContextId",
             "@type" : [ "Context", "OffsetBasedString" ],
             "beginIndex" : $bean.context.beginIndex,
             "endIndex" : $bean.context.endIndex,
             "isString" : "$bean.mention"
             #end
            #if($bean.nifType == "ENTITY")
            "@id":  "$bean.context.NIF21id",
            "@type": "Annotation",
            "taAnnotatorsRef" : "$bean.annotator",
            "taClassRef": [ #foreach ($type in $bean.types)"$type"#if( $foreach.hasNext ),#end#end],
            "taConfidence": $bean.score,
            "taIdentRef": "$bean.taIdentRef",
            "referenceContext": "$bean.referenceContextId"#if($bean.taClassRef),
            "taMsClassRef":[#foreach ($type in $bean.taClassRef)"$type"#if( $foreach.hasNext ),#end#end]#end
            #end}#if( $foreach.hasNext )
            ,#end
          #end
    ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy