code: public void writeTokens(Writer writer, boolean useLemmas, boolean useNormNer) 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 writeTokens()");
                  writer.write(tok.getNormNer());
              } else if (useLemmas) {
                  require(prefs.readLemma, 
                          "AgigaPrefs.readLemma must be true if useLemmas=true for writeTokens()");
                  writer.write(tok.getLemma());
              } else {
                  require(prefs.readWord, 
                          "AgigaPrefs.readWord must be true if useLemmas and useNormNer are false for writeTokens()");
                  writer.write(tok.getWord());                
              }
              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)