Commits

Gregory Druck  committed 7ec68fb

Bug fix in SGML2TokenSequence.

  • Participants
  • Parent commits cb8551b

Comments (0)

Files changed (1)

File src/cc/mallet/pipe/SGML2TokenSequence.java

 		carrier.setData(dataTokens);
 		carrier.setTarget(targetTokens);
 
-    if (saveSource)
-		  carrier.setSource(dataTokens);
+    if (saveSource) {
+      carrier.setSource(dataTokens);
+    }
 
 		return carrier;
 	}
 		sgmlPattern = (Pattern) in.readObject();
 		lexer = (CharSequenceLexer) in.readObject();
 		backgroundTag = (String) in.readObject();
-    if (version == 0) saveSource = true;
+    if (version == 0) {
+      saveSource = true;
+    }
+    else {
+      saveSource = in.readBoolean();
+    }
 	}