code: public FrequencyTableEntry toFrequencyTableEntry()
    {
      FrequencyTableEntry result = new FrequencyTableEntry();
      
      result.setReferencedNode(nr);
      
      if (annotation != null && "tok".equals(annotation))
      {
        result.setType(FrequencyTableEntryType.span);
      }
      else
      {
        result.setType(FrequencyTableEntryType.annotation);
        result.setKey(annotation);
      }
      
      return result;
    }
docs: Converts this object to a proper definition.
  @return