Update of /cvsroot/jboost/jboost/src/jboost/tokenizer
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv31948/src/jboost/tokenizer
Modified Files:
DataStream.java jboost_DataStream.java
Log Message:
bunch of misc changes
Index: DataStream.java
===================================================================
RCS file: /cvsroot/jboost/jboost/src/jboost/tokenizer/DataStream.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** DataStream.java 16 May 2007 04:06:02 -0000 1.1.1.1
--- DataStream.java 23 Oct 2007 23:52:26 -0000 1.2
***************
*** 15,18 ****
--- 15,19 ----
public static String WEIGHT_ATTR= "weight";
+ public static String ID_ATTR = "id";
public static String LABELS_ATTR= "labels";
Index: jboost_DataStream.java
===================================================================
RCS file: /cvsroot/jboost/jboost/src/jboost/tokenizer/jboost_DataStream.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** jboost_DataStream.java 16 May 2007 04:06:02 -0000 1.1.1.1
--- jboost_DataStream.java 23 Oct 2007 23:52:26 -0000 1.2
***************
*** 359,363 ****
ed.setLabel(attribute, lineCount);
} else if (name.equals(DataStream.WEIGHT_ATTR)) {
! ed.setWeight(attribute, lineCount);
} else {
ed.addAttribute(attribute);
--- 359,365 ----
ed.setLabel(attribute, lineCount);
} else if (name.equals(DataStream.WEIGHT_ATTR)) {
! ed.setWeight(attribute, lineCount);/*
! } else if (name.equals(DataStream.ID_ATTR)) {
! ed.setId(attribute, lineCount);*/
} else {
ed.addAttribute(attribute);
|