Codota Logo
MutableContext.updateParameter
Code IndexAdd Codota to your IDE (free)

How to use
updateParameter
method
in
opennlp.model.MutableContext

Best Java code snippets using opennlp.model.MutableContext.updateParameter (Showing top 12 results out of 315)

  • Common ways to obtain MutableContext
private void myMethod () {
MutableContext m =
  • Codota Iconnew MutableContext(outcomePattern, new double[numActiveOutcomes])
  • Smart code suggestions by Codota
}
origin: org.maochen.nlp/CoreNLP-NLP

  modelExpects[threadIndex][pi].updateParameter(aoi, modelDistribution[oi] * trainingDataFeatValues[ei][j] * numTimesEventsSeen[ei]);
} else {
  modelExpects[threadIndex][pi].updateParameter(aoi, modelDistribution[oi] * numTimesEventsSeen[ei]);
origin: joliciel-informatique/talismane

 modelExpects[threadIndex][pi].updateParameter(aoi, modelDistribution[oi] * values[ei][j] * numTimesEventsSeen[ei]);
} else {
 modelExpects[threadIndex][pi].updateParameter(aoi, modelDistribution[oi] * numTimesEventsSeen[ei]);
origin: org.maochen.nlp/CoreNLP-NLP

    modelExpects[0][pi].updateParameter(aoi, modelExpects[i][pi].getParameters()[aoi]);
for (int aoi = 0; aoi < activeOutcomes.length; aoi++) {
  if (useGaussianSmoothing) {
    params[pi].updateParameter(aoi, gaussianUpdate(pi, aoi, correctionConstant));
  } else {
    if (model[aoi] == 0) {
      LOG.error("Model expects == 0 for " + featNames[pi] + " " + labels[aoi]);
    params[pi].updateParameter(aoi, ((Math.log(observed[aoi]) - Math.log(model[aoi])) / correctionConstant));
origin: Ailab403/ailab-mltk4j

modelExpects[threadIndex][pi].updateParameter(aoi,modelDistribution[oi] * values[ei][j] * numTimesEventsSeen[ei]);
modelExpects[threadIndex][pi].updateParameter(aoi,modelDistribution[oi] * numTimesEventsSeen[ei]);
origin: org.apache.opennlp/opennlp-maxent

modelExpects[threadIndex][pi].updateParameter(aoi,modelDistribution[oi] * values[ei][j] * numTimesEventsSeen[ei]);
modelExpects[threadIndex][pi].updateParameter(aoi,modelDistribution[oi] * numTimesEventsSeen[ei]);
origin: Ailab403/ailab-mltk4j

  modelExpects[0][pi].updateParameter(aoi, modelExpects[i][pi].getParameters()[aoi]);
for (int aoi=0;aoi<activeOutcomes.length;aoi++) {
 if (useGaussianSmoothing) {
  params[pi].updateParameter(aoi,gaussianUpdate(pi,aoi,numEvents,correctionConstant));
  params[pi].updateParameter(aoi,((Math.log(observed[aoi]) - Math.log(model[aoi]))/correctionConstant));
origin: org.apache.opennlp/opennlp-maxent

  modelExpects[0][pi].updateParameter(aoi, modelExpects[i][pi].getParameters()[aoi]);
for (int aoi=0;aoi<activeOutcomes.length;aoi++) {
 if (useGaussianSmoothing) {
  params[pi].updateParameter(aoi,gaussianUpdate(pi,aoi,numEvents,correctionConstant));
  params[pi].updateParameter(aoi,((Math.log(observed[aoi]) - Math.log(model[aoi]))/correctionConstant));
origin: joliciel-informatique/talismane

  modelExpects[0][pi].updateParameter(aoi, modelExpects[i][pi].getParameters()[aoi]);
for (int aoi = 0; aoi < activeOutcomes.length; aoi++) {
 if (useGaussianSmoothing) {
  params[pi].updateParameter(aoi, gaussianUpdate(pi, aoi, numEvents, correctionConstant));
 } else {
  if (model[aoi] == 0) {
  params[pi].updateParameter(aoi, ((Math.log(observed[aoi]) - Math.log(model[aoi])) / correctionConstant));
origin: Ailab403/ailab-mltk4j

   int pi = contexts[ei][ci];
   if (values == null) {
    params[pi].updateParameter(targetOutcome, stepsize);
    params[pi].updateParameter(maxOutcome, -stepsize);
   } else {
    params[pi].updateParameter(targetOutcome, stepsize*values[ei][ci]);
    params[pi].updateParameter(maxOutcome, -stepsize*values[ei][ci]);
for (int pi = 0; pi < numPreds; pi++) 
 for (int aoi=0;aoi<numOutcomes;aoi++)
  summedParams[pi].updateParameter(aoi, params[pi].getParameters()[aoi]);
origin: org.apache.opennlp/opennlp-maxent

   int pi = contexts[ei][ci];
   if (values == null) {
    params[pi].updateParameter(targetOutcome, stepsize);
    params[pi].updateParameter(maxOutcome, -stepsize);
   } else {
    params[pi].updateParameter(targetOutcome, stepsize*values[ei][ci]);
    params[pi].updateParameter(maxOutcome, -stepsize*values[ei][ci]);
for (int pi = 0; pi < numPreds; pi++) 
 for (int aoi=0;aoi<numOutcomes;aoi++)
  summedParams[pi].updateParameter(aoi, params[pi].getParameters()[aoi]);
origin: Ailab403/ailab-mltk4j

if (pi != -1) {
 params[pi].updateParameter(oi, featureCounts[oi].get(feature));
 if (useAverage) {
  if (updates[pi][oi][VALUE] != 0) {
   averageParams[pi].updateParameter(oi,updates[pi][oi][VALUE]*(numSequences*(iteration-updates[pi][oi][ITER])+(si-updates[pi][oi][EVENT])));
origin: org.apache.opennlp/opennlp-maxent

if (pi != -1) {
 params[pi].updateParameter(oi, featureCounts[oi].get(feature));
 if (useAverage) {
  if (updates[pi][oi][VALUE] != 0) {
   averageParams[pi].updateParameter(oi,updates[pi][oi][VALUE]*(numSequences*(iteration-updates[pi][oi][ITER])+(si-updates[pi][oi][EVENT])));
opennlp.modelMutableContextupdateParameter

Javadoc

Updated the parameter or expected value at the specified outcomeIndex by adding the specified value to its current value.

Popular methods of MutableContext

  • <init>
    Creates a new parameters object with the specified parameters associated with the specified outcome
  • getOutcomes
  • getParameters
  • setParameter
    Assigns the parameter or expected value at the specified outcomeIndex the specified value.

Popular in Java

  • Creating JSON documents from java classes using gson
  • putExtra (Intent)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • String (java.lang)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now