code: public void writeTags(Writer writer, boolean useLemmas, boolean useNormNer, boolean useNerTags) throws IOException {
          for (int i=0; i<tokens.size(); i++) {
              AgigaToken tok = tokens.get(i);
              if (useNormNer && tok.getNormNer() != null) {
                  require(prefs.readNormNer, 
                          "AgigaPrefs.readNormNer must be true if useNormNer=true for writeTags()");
                  writer.write(tok.getNormNer());
              } else if (useLemmas) {
                  require(prefs.readLemma, 
                          "AgigaPrefs.readLemma must be true if useLemmas=true for writeTags()");
                  writer.write(tok.getLemma());
              } else {
                  require(prefs.readWord, 
                          "AgigaPrefs.readWord must be true if useLemmas and useNormNer are false for writeTags()");
                  writer.write(tok.getWord());                
              }
              writer.write("/");
              if (useNerTags) {
                  require(prefs.readNer,
                          "AgigaPrefs.readNer must be true if useNerTags=true for writeTags()");
                  if (prefs.strict) { 
                      writer.write(tok.getNerTag());
                  } else {
                      if (tok.getNerTag() != null) {
                          writer.write(tok.getNerTag());
                      } else {
                          log.warning("Missing NER annotation written as '__MISSING_NER_ANNOTATION__'");
                          writer.write("__MISSING_NER_ANNOTATION__");
                      }
                  }
              } else {
                  require(prefs.readPos,
                          "AgigaPrefs.readPos must be true if useNerTags=false for writeTags()");
                  writer.write(tok.getPosTag());
              }
              if (i < tokens.size()-1) {
                  writer.write(" ");
              }
          }
          writer.write("\n");
      }
docs: /* (non-Javadoc)
  @see edu.jhu.hltcoe.sp.data.depparse.AgigaSentence#writeTags(java.io.Writer, boolean, boolean, boolean)