Class CorpusDocumentAnnotationSubannotationsSimilarity

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @Path("/CorpusDocumentAnnotationSubannotationsSimilarity")
    public class CorpusDocumentAnnotationSubannotationsSimilarity
    extends AbstractOOPCacheableServlet
    See Also:
    Serialized Form
    • Constructor Detail

      • CorpusDocumentAnnotationSubannotationsSimilarity

        public CorpusDocumentAnnotationSubannotationsSimilarity()
    • Method Detail

      • doGet

        @GET
        @Produces("application/json; charset=utf-8")
        public String doGet​(@QueryParam("TargetCorpus")
                            String targetCorpus,
                            @QueryParam("Corpus")
                            String corpus,
                            @QueryParam("Document")
                            String document,
                            @QueryParam("Annotation")
                            String annotation)
                     throws com.fasterxml.jackson.core.JsonProcessingException,
                            IOException,
                            javax.servlet.ServletException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        IOException
        javax.servlet.ServletException
      • calculateSimilarity

        protected Double calculateSimilarity​(com.fasterxml.jackson.databind.node.ObjectNode corpusAggregates,
                                             com.fasterxml.jackson.databind.node.ObjectNode documentAggregates,
                                             String annotation)
      • getSubscoreFromCorpusAggregate

        protected com.fasterxml.jackson.databind.node.ObjectNode getSubscoreFromCorpusAggregate​(com.fasterxml.jackson.databind.node.ObjectNode corpusAggregates,
                                                                                                String score,
                                                                                                String subscore)