if (!instanceInfo.attribute(m_KeyphrasesAtt).isString() ||
!instanceInfo.attribute(m_DocumentAtt).isString()) {
throw new Exception("Keyphrase attribute and document attribute " +
"need to be string attributes.");
}
m_PunctFilter = new KEAPhraseFilter();
int[] arr = new int[1];
arr[0] = m_DocumentAtt;
m_PunctFilter.setAttributeIndicesArray(arr);
m_PunctFilter.setInputFormat(instanceInfo);
m_PunctFilter.setDisallowInternalPeriods(getDisallowInternalPeriods());