int start = Integer.parseInt(e.getAttributeValue("xtspanstart"));
int end = Integer.parseInt(e.getAttributeValue("xtspanend"));
putDatasectionIntoSaf(procDoc, safHolder, start, end);
return;
}
TokenSequence tokSeq = null;
for(TokenSequence t : procDoc.getTokenSequences()) {
if(t.getElem() == e) tokSeq = t;
}
int dataSectionStartOffset = -1;
if(tokSeq != null) {
for(Token t : tokSeq.getTokens()) {
//System.out.println(t.getValue());
Matcher m = dataStartPattern.matcher(t.getValue());
if(m.matches() || (t.getValue().matches("1H|13C") && t.getNAfter(1) != null && t.getNAfter(1).getValue().equals("NMR"))) {
double checkVal = checkCut(tokSeq, t.getId());
//System.out.println(checkVal);