Changeset 4024
- Timestamp:
- 2003-03-28T10:09:39+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GATEServices.java
r4019 r4024 67 67 protected Corpus corpus_; 68 68 69 protected String[] annotation_types_ = { " Address", "Date", "Location",69 protected String[] annotation_types_ = { "Date", "Location", 70 70 "Organization", "Person" }; 71 71 // Address, 72 72 73 73 /** constructor */ … … 83 83 config_info_ = info; 84 84 85 // These entries should reflect the build config file86 // Some services may not be available depending on how the colleciton was built.87 85 // set up short_service_info_ - for now just has name and type 88 86 Element tq_service = doc_.createElement(GSXML.SERVICE_ELEM); … … 102 100 // Element format = (Element) GSXML.getChildByTagName(info, GSXML.FORMAT_ELEM); 103 101 // if (format != null) { 104 // format_info_map_.put( TEXT_QUERY_SERVICE, doc_.importNode(format, true));102 // format_info_map_.put(GATE_POS_TAG_SERVICE, doc_.importNode(format, true)); 105 103 // } 106 104 … … 179 177 } 180 178 else { 181 param = GSXML.createParameter(doc_, name, GSXML.PARAM_TYPE_ENUM_ SINGLE, annotation_types_[0], annotation_types_);179 param = GSXML.createParameter(doc_, name, GSXML.PARAM_TYPE_ENUM_MULTI, annotation_types_[0], annotation_types_); 182 180 } 183 181 } … … 212 210 // Identify the annotation types desired 213 211 if (param.getAttribute(GSXML.NAME_ATT).equals("annotationType")) { 214 String annotationType = GSXML.getValue(param); 215 System.out.println("Annotation type: " + annotationType); 216 annTypes.add(annotationType); 212 String annotation_type = GSXML.getValue(param); 213 String [] types = annotation_type.split(","); 214 for (int i=0; i<types.length; i++) { 215 annTypes.add(types[i]); 216 } 217 217 } 218 218
Note:
See TracChangeset
for help on using the changeset viewer.