congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobSettings.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
uk.gov.dstl.baleen.uima.JobSettings
constructor

Best Java code snippets using uk.gov.dstl.baleen.uima.JobSettings.<init> (Showing top 7 results out of 315)

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

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: dstl/baleen

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: dstl/baleen

@Before
public void before() throws UIMAException {
 jCas = JCasSingleton.getJCasInstance();
 settings = new JobSettings(jCas);
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void getNext(final JCas jCas) throws IOException, CollectionException {
 getMonitor().startFunction("getNext");
 MetricsFactory.getInstance()
   .getPipelineMetrics(monitor.getPipelineName())
   .startDocumentProcess();
 jCas.setDocumentText(JobSettings.class.getSimpleName());
 jCas.setDocumentLanguage("en");
 final JobSettings settings = new JobSettings(jCas);
 for (final Map.Entry<String, String> e : config.entrySet()) {
  settings.set(e.getKey(), e.getValue());
 }
 getMonitor().finishFunction("getNext");
}
origin: dstl/baleen

@Override
public final void getNext(final JCas jCas) throws IOException, CollectionException {
 getMonitor().startFunction("getNext");
 MetricsFactory.getInstance()
   .getPipelineMetrics(monitor.getPipelineName())
   .startDocumentProcess();
 jCas.setDocumentText(JobSettings.class.getSimpleName());
 jCas.setDocumentLanguage("en");
 final JobSettings settings = new JobSettings(jCas);
 for (final Map.Entry<String, String> e : config.entrySet()) {
  settings.set(e.getKey(), e.getValue());
 }
 getMonitor().finishFunction("getNext");
}
origin: dstl/baleen

protected JobSettings execute(AnalysisEngine... analysisEngines)
  throws AnalysisEngineProcessException {
 jCas.reset();
 for (AnalysisEngine ae : analysisEngines) {
  ae.process(jCas);
 }
 return new JobSettings(jCas);
}
origin: dstl/baleen

 @Test
 public void testChangeJCas() {
  settings.set("key", "value");
  assertEquals("value", settings.get("key").get());

  JobSettings settings2 = new JobSettings(jCas);
  assertEquals("value", settings2.get("key").get());
 }
}
uk.gov.dstl.baleen.uimaJobSettings<init>

Javadoc

Instantiates a new job settings.

Popular methods of JobSettings

  • remove
    Removes the data at the key
  • set
    Sets the value of a key.
  • get
    Gets the value at a key.

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Github Copilot alternatives
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