congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ICodingAnnotationItem.getUnit
Code IndexAdd Tabnine to your IDE (free)

How to use
getUnit
method
in
de.tudarmstadt.ukp.dkpro.statistics.agreement.coding.ICodingAnnotationItem

Best Java code snippets using de.tudarmstadt.ukp.dkpro.statistics.agreement.coding.ICodingAnnotationItem.getUnit (Showing top 6 results out of 315)

origin: webanno/webanno

public boolean isAllNull(String aCasGroupId)
{
  for (ICodingAnnotationItem item : study.getItems()) {
    if (item.getUnit(casGroupIds.indexOf(aCasGroupId)).getCategory() != null) {
      return false;
    }
  }
  return true;
}

origin: de.tudarmstadt.ukp.dkpro.statistics/dkpro-statistics-agreement

out.print(r + 1);
for (ICodingAnnotationItem item : study.getItems())
  out.print(DIVIDER + item.getUnit(r).getCategory());
out.println();
origin: webanno/webanno

public int getNonNullCount(String aCasGroupId)
{
  int i = 0;
  for (ICodingAnnotationItem item : study.getItems()) {
    if (item.getUnit(casGroupIds.indexOf(aCasGroupId)).getCategory() != null) {
      i++;
    }
  }
  return i;
}
origin: de.tudarmstadt.ukp.dkpro.statistics/dkpro-statistics-agreement

int cat1 = categories.get(item.getUnit(0).getCategory());
int cat2 = categories.get(item.getUnit(1).getCategory());
frequencies[cat1][cat2]++;
origin: de.tudarmstadt.ukp.dkpro.statistics/dkpro-statistics-agreement

/** Returns a clone of the current annotation study which contains
 *  only the annotation units of the raters with the given indexes.
 *  All other units will be removed. This method is useful for
 *  converting an annotation study with multiple raters into a
 *  (pairwise) annotation study with two raters. */
public CodingAnnotationStudy extractRaters(final int... raters) {
  CodingAnnotationStudy result = new CodingAnnotationStudy(raters.length);
  for (ICodingAnnotationItem item : getItems()) {
    CodingAnnotationItem newItem = new CodingAnnotationItem(raters.length);
    for (int r = 0; r < raters.length; r++) {
      IAnnotationUnit unit = item.getUnit(raters[r]);
      newItem.addUnit(result.createUnit(result.items.size(), 
          r, unit.getCategory()));
    }
    result.items.add(newItem);
  }
  return result;
}
origin: webanno/webanno

ICodingAnnotationItem item2 = agreement.getStudy().getItem(1);
ICodingAnnotationItem item3 = agreement.getStudy().getItem(2);
assertEquals("", item1.getUnit(0).getCategory());
assertEquals("", item1.getUnit(1).getCategory());
assertEquals("", item2.getUnit(0).getCategory());
assertEquals(null, item2.getUnit(1).getCategory());
assertEquals(null, item3.getUnit(0).getCategory());
assertEquals("", item3.getUnit(1).getCategory());
de.tudarmstadt.ukp.dkpro.statistics.agreement.codingICodingAnnotationItemgetUnit

Javadoc

Returns the annotation unit of the rater with the specified index. That is, the object holding the category assigned to the item by the specified rater.

Popular methods of ICodingAnnotationItem

  • getUnits
    Returns all coding units for this annotation item (i.e., the categories assigned by the individual r
  • getRaterCount
    Returns the number of raters who annotated this item with a non-null category.

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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