{
if (eq!=null)
if (eq.getFeatureStructure()!=null)
if (!eq.getFeatureStructure().getFeatures().isEmpty())
{
Feature lem = eq.getFeatureStructure().getFeature(LexFormatEntry.COANCHOR_LEMMA_FEAT);
Feature cat = eq.getFeatureStructure().getFeature(LexFormatEntry.COANCHOR_CAT_FEAT);
if (lem!=null && cat !=null)
out.write(eq.getNodeId() + " -> " + lem.getValue() + "/" + cat.getValue() + "\n");
else
logger.warn("In a COANCHORS equation we do not find expected lemma and cat elements of nodeId -> lemma/cat");
}