Tabnine Logo
FeatureValueUpdatedEvent.getDocument
Code IndexAdd Tabnine to your IDE (free)

How to use
getDocument
method
in
de.tudarmstadt.ukp.clarin.webanno.api.annotation.event.FeatureValueUpdatedEvent

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.api.annotation.event.FeatureValueUpdatedEvent.getDocument (Showing top 6 results out of 315)

origin: inception-project/inception

@Override
public long getDocument(FeatureValueUpdatedEvent aEvent)
{
  return aEvent.getDocument().getId();
}

origin: de.tudarmstadt.ukp.inception.app/inception-log

@Override
public long getDocument(FeatureValueUpdatedEvent aEvent)
{
  return aEvent.getDocument().getId();
}

origin: de.tudarmstadt.ukp.inception.app/inception-log

@Override
public long getProject(FeatureValueUpdatedEvent aEvent)
{
  return aEvent.getDocument().getProject().getId();
}

origin: inception-project/inception

@Override
public long getProject(FeatureValueUpdatedEvent aEvent)
{
  return aEvent.getDocument().getProject().getId();
}

origin: de.tudarmstadt.ukp.inception.app/inception-active-learning

/**
 * Listens to the user setting a feature on an annotation in the main annotation editor. Mind
 * that we do not need to listen to the creation of annotations since they have no effect on 
 * the active learning sidebar as long as they have no features set.
 */
@OnEvent
public void onFeatureValueUpdated(FeatureValueUpdatedEvent aEvent)
{
  AnnotatorState state = getModelObject();
  ActiveLearningUserState alState = alStateModel.getObject();
  // If the user creates a new annotation at the site of the suggestion that is currently
  // offered to the user, then the AL should move on to the next available suggestion
  if (
      alState.isSessionActive() &&
      (!alState.getSuggestion().isPresent() || (
      aEvent.getUser().equals(state.getUser().getUsername()) &&
      aEvent.getDocument().equals(state.getDocument()) &&
      aEvent.getFeature().getLayer().equals(alState.getLayer()) &&
      aEvent.getFeature().getName().equals(alState.getSuggestion().get().getFeature())))
  ) {
    reactToAnnotationsBeingCreatedOrDeleted(aEvent.getRequestTarget(),
        aEvent.getFeature().getLayer());
  }
}

origin: inception-project/inception

/**
 * Listens to the user setting a feature on an annotation in the main annotation editor. Mind
 * that we do not need to listen to the creation of annotations since they have no effect on 
 * the active learning sidebar as long as they have no features set.
 */
@OnEvent
public void onFeatureValueUpdated(FeatureValueUpdatedEvent aEvent)
{
  AnnotatorState state = getModelObject();
  ActiveLearningUserState alState = alStateModel.getObject();
  // If the user creates a new annotation at the site of the suggestion that is currently
  // offered to the user, then the AL should move on to the next available suggestion
  if (
      alState.isSessionActive() &&
      (!alState.getSuggestion().isPresent() || (
      aEvent.getUser().equals(state.getUser().getUsername()) &&
      aEvent.getDocument().equals(state.getDocument()) &&
      aEvent.getFeature().getLayer().equals(alState.getLayer()) &&
      aEvent.getFeature().getName().equals(alState.getSuggestion().get().getFeature())))
  ) {
    reactToAnnotationsBeingCreatedOrDeleted(aEvent.getRequestTarget(),
        aEvent.getFeature().getLayer());
  }
}

de.tudarmstadt.ukp.clarin.webanno.api.annotation.eventFeatureValueUpdatedEventgetDocument

Popular methods of FeatureValueUpdatedEvent

  • getUser
  • <init>
  • getFS
  • getFeature
  • getNewValue
  • getOldValue
  • getRequestTarget

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Option (scala)
  • CodeWhisperer 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