Class CorpusDocumentAnnotationSubannotationsTfidf

    • Constructor Detail

      • CorpusDocumentAnnotationSubannotationsTfidf

        public CorpusDocumentAnnotationSubannotationsTfidf()
    • 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
      • calculateTfidfScores

        protected void calculateTfidfScores​(com.fasterxml.jackson.databind.node.ObjectNode corpusIdfScores,
                                            com.fasterxml.jackson.databind.node.ObjectNode documentAggregates,
                                            String annotation,
                                            com.fasterxml.jackson.databind.node.ArrayNode retval)