 
   render: (template, data) ->
     window.annotationDocumentPayload = data
-    console.log 'render interface with payload:', data
     super
 
   saveAnnotation: ->


          payload['content'][paragraphIndex][sentenceIndex].push(tokenHash)

    console.log 'save payload:', payload
    this.saveChanges(payload)

window.ner_complete = new ner_complete()

  changeTokenKind: (kind) ->
    return if this.selectedTokenIndex < 0

    modifier = (token, kind) ->
      unless token.kind == kind
        token.kind = kind
