code: public final void getAllTagsLemmasToNAF(final KAFDocument kaf) {
      final List<List<WF>> sentences = kaf.getSentences();
      for (final List<WF> wfs : sentences) {
  
        final List<ixa.kaflib.Span<WF>> tokenSpans = new ArrayList<ixa.kaflib.Span<WF>>();
        final String[] tokens = new String[wfs.size()];
        for (int i = 0; i < wfs.size(); i++) {
          tokens[i] = wfs.get(i).getForm();
          final List<WF> wfTarget = new ArrayList<WF>();
          wfTarget.add(wfs.get(i));
          tokenSpans.add(KAFDocument.newWFSpan(wfTarget));
        }
        
        String[][] allPosTags = this.posTagger.getAllPosTags(tokens);
        ListMultimap<String, String> morphMap = lemmatizer.getMultipleLemmas(tokens, allPosTags);
        
        for (int i = 0; i < tokens.length; i++) {
          final Term term = kaf.newTerm(tokenSpans.get(i));
          List<String> posLemmaValues = morphMap.get(tokens[i]);
          if (this.dictLemmatizer != null) {
            dictLemmatizer.getAllPosLemmas(tokens[i], posLemmaValues);
          }
          String allPosLemmasSet = StringUtils.getSetStringFromList(posLemmaValues);
          final String posId = Resources.getKafTagSet(allPosTags[0][i], lang);
          final String type = Resources.setTermType(posId);
          term.setType(type);
          term.setLemma(posLemmaValues.get(0).split("#")[1]);
          term.setPos(posId);
          term.setMorphofeat(allPosLemmasSet);
        }
      }
    }
docs: Add all postags and lemmas to morphofeat attribute.
  @param kaf the NAF document