congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ProcessingResult.getAttributes
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributes
method
in
org.carrot2.core.ProcessingResult

Best Java code snippets using org.carrot2.core.ProcessingResult.getAttributes (Showing top 4 results out of 315)

origin: org.carrot2/carrot2-core

/**
 * Updates the statistics
 */
void update(ProcessingResult processingResult)
{
  synchronized (this)
  {
    totalQueries++;
    if (processingResult != null)
    {
      goodQueries++;
      final Map<String, Object> attributes = processingResult
        .getAttributes();
      addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_SOURCE,
        sourceTimeAverage);
      addTimeToAverage(attributes,
        AttributeNames.PROCESSING_TIME_ALGORITHM, algorithmTimeAverage);
      addTimeToAverage(attributes, AttributeNames.PROCESSING_TIME_TOTAL,
        totalTimeAverage);
    }
  }
}
origin: org.carrot2/carrot2-core

    xsltParameters);
query = (String) processingResult.getAttributes().get(AttributeNames.QUERY);
documents = processingResult.getDocuments();
origin: org.carrot2/carrot2-core

final Map<String, Object> resultAttributes = processingResult.getAttributes();
response.metadata
  .put(SearchEngineResponse.RESULTS_TOTAL_KEY, resultAttributes
origin: medcl/elasticsearch-carrot2

final Map<String, Object> attributes = processingResult.getAttributes();
org.carrot2.coreProcessingResultgetAttributes

Javadoc

Returns attributes fed-in and collected during processing. The returned map is unmodifiable.

Popular methods of ProcessingResult

  • getClusters
    Returns the clusters that have been created during processing. The returned list is unmodifiable.
  • <init>
    Creates a ProcessingResult with the provided attributes. Assigns unique document identifiers if docu
  • deserialize
    Deserialize from an input stream of characters.
  • documentIdToReference
    Replace document refids with the actual references upon deserialization.
  • getDocuments
    Returns the documents that have been processed. The returned collection is unmodifiable.
  • prepareAttributesForSerialization
    Prepares a temporary attributes map for serialization purposes. Includes only the requested elements
  • serialize
    Serializes this ProcessingResult to a byte stream. Documents, clusters and other attributes can be i
  • serializeJson
    Serializes this processing result as JSON to the provided writer. Documents, clusters and other attr

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JButton (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now