Tabnine Logo
UimaMonitor.info
Code IndexAdd Tabnine to your IDE (free)

How to use
info
method
in
uk.gov.dstl.baleen.uima.UimaMonitor

Best Java code snippets using uk.gov.dstl.baleen.uima.UimaMonitor.info (Showing top 20 results out of 315)

origin: uk.gov.dstl.baleen/baleen-graph

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: uk.gov.dstl.baleen/baleen-rdf

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: uk.gov.dstl.baleen/baleen-graph

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: dstl/baleen

@Override
protected void doProcess(JCas jCas) throws AnalysisEngineProcessException {
 JCasUtil.select(jCas, clazz)
   .stream()
   .map(this::print)
   .filter(Objects::nonNull)
   .forEach(s -> getMonitor().info("{}:\n{}", clazz.getName(), s));
}
origin: dstl/baleen

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: dstl/baleen

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: dstl/baleen

@Override
protected boolean doInitialize(
  final ResourceSpecifier specifier, final Map<String, Object> additionalParams)
  throws ResourceInitializationException {
 jedisPool = new JedisPool(redisServer, redisPort);
 getMonitor().info("Initialised Jedis resources");
 return true;
}
origin: dstl/baleen

 @Override
 public void flush() throws IOException {
  super.flush();
  monitor.info("{}:\n{}", AbstractDocumentGraphFormatConsumer.class.getName(), toString());
 }
};
origin: uk.gov.dstl.baleen/baleen-collectionreaders

/** Check whether there are files present (which don't start with key-) */
public File[] checkFilesExist() throws BaleenException {
 final File[] files =
   new File(mucPath).listFiles(f -> !f.getName().startsWith("key-") && f.isFile());
 if (files == null || files.length == 0) {
  getMonitor().info("No MUC files found is the path correct: {}", mucPath);
  throw new BaleenException("No MUC files found to process");
 }
 return files;
}
origin: dstl/baleen

/** Check whether there are files present (which don't start with key-) */
public File[] checkFilesExist() throws BaleenException {
 final File[] files =
   new File(mucPath).listFiles(f -> !f.getName().startsWith("key-") && f.isFile());
 if (files == null || files.length == 0) {
  getMonitor().info("No MUC files found is the path correct: {}", mucPath);
  throw new BaleenException("No MUC files found to process");
 }
 return files;
}
origin: dstl/baleen

@Override
public void doInitialize(final UimaContext aContext) throws ResourceInitializationException {
 super.doInitialize(aContext);
 getMonitor()
   .info("Will be writing to " + Paths.get(outputDirectory).toAbsolutePath().toString());
}
origin: uk.gov.dstl.baleen/baleen-rabbitmq

 @Override
 protected int getQueueLength() {
  try {
   return consumer.getQueueCount();
  } catch (IOException e) {
   getMonitor().info("Unable to check queue length");
   return 0;
  }
 }
}
origin: uk.gov.dstl.baleen/baleen-collectionreaders

@Override
public void doGetNext(JCas jCas) throws IOException, CollectionException {
 if (queue.isEmpty()) {
  getMonitor().error("No documents on the queue - this method should not have been called");
  throw new CollectionException();
 }
 Path path = queue.remove(0);
 getMonitor().info("Processing file {}", path.toString());
 try (InputStream is = new FileInputStream(path.toFile()); ) {
  extractor.processStream(is, path.toString(), jCas);
 }
}
origin: dstl/baleen

 @Override
 protected int getQueueLength() {
  try {
   return consumer.getQueueCount();
  } catch (IOException e) {
   getMonitor().info("Unable to check queue length");
   return 0;
  }
 }
}
origin: dstl/baleen

@Override
public void doGetNext(JCas jCas) throws IOException, CollectionException {
 if (queue.isEmpty()) {
  getMonitor().error("No documents on the queue - this method should not have been called");
  throw new CollectionException();
 }
 Path path = queue.remove(0);
 getMonitor().info("Processing file {}", path.toString());
 try (InputStream is = new FileInputStream(path.toFile()); ) {
  extractContent(is, path.toString(), jCas);
 }
}
origin: uk.gov.dstl.baleen/baleen-jobs

 @Override
 public void write(InteractionDefinition interaction, Collection<String> alternatives) {
  monitor.info(
    "Interaction {} {} {} {} {}",
    interaction.getType(),
    interaction.getSubType(),
    interaction.getSource(),
    interaction.getTarget(),
    alternatives.stream().collect(Collectors.joining(";")));
 }
}
origin: dstl/baleen

 @Override
 protected void doProcess(ItemHierarchy<Structure> structureHierarchy)
   throws AnalysisEngineProcessException {
  final String result = print(structureHierarchy.getRoot());
  getMonitor().info("{}:\n{}", Structure.class.getName(), result);
 }
}
origin: uk.gov.dstl.baleen/baleen-mallet

private void logAccuracyMetrics(Classifier classifier, Trial trial) {
 getMonitor().info("Accuracy: {}", trial.getAccuracy());
 for (String label : (String[]) classifier.getLabelAlphabet().toArray(new String[0])) {
  getMonitor().info("F1 for class '{}': {}", label, trial.getF1(label));
  getMonitor().info("Precision for class '{}' : {}", label, trial.getPrecision(label));
 }
}
origin: dstl/baleen

private void logAccuracyMetrics(Classifier classifier, Trial trial) {
 getMonitor().info("Accuracy: {}", trial.getAccuracy());
 for (String label : (String[]) classifier.getLabelAlphabet().toArray(new String[0])) {
  getMonitor().info("F1 for class '{}': {}", label, trial.getF1(label));
  getMonitor().info("Precision for class '{}' : {}", label, trial.getPrecision(label));
 }
}
origin: dstl/baleen

 @Test
 public void testLogger() {
  UimaMonitor monitor = new UimaMonitor(PIPELINE, this.getClass());

  monitor.trace("test");
  monitor.debug("test");
  monitor.info("test");
  monitor.warn("test");
  monitor.error("test");
 }
}
uk.gov.dstl.baleen.uimaUimaMonitorinfo

Javadoc

Log an info level message.

Popular methods of UimaMonitor

  • warn
    Log a warning level message.
  • error
    Log an error level message.
  • debug
    Log a debug level message.
  • <init>
    Constructor to create a UimaMonitor. The class and pipeline name should be specified so that we can
  • trace
    Log a trace level message.
  • counter
    Get the counter metric with the supplied name, within the scope of this monitor.
  • entityAdded
    Register that an entity of a specific type has been added
  • entityRemoved
    Register that an entity of a specific type has been removed
  • finishFunction
    Finish the timer at the end of the function, and log that the function has finished
  • getPipelineName
    Get the name of the pipeline to which this belongs.
  • meter
    Get the meter metric with the supplied name, within the scope of this monitor.
  • persistCounts
    Persist entity counts into the Metrics object, as we only want to do this once per process() functio
  • meter,
  • persistCounts,
  • startFunction,
  • finishFunctionTrace,
  • histogram,
  • startFunctionTrace,
  • stopTimer,
  • timer

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for Android Studio
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