Révision 3520
TXM/trunk/org.txm.treesearch.rcp/src/org/txm/treesearch/editor/TreeSearchEditor.java (revision 3520) | ||
---|---|---|
265 | 265 |
String[] tFeatures = ts.getAvailableTProperties(); |
266 | 266 |
if (tFeatures.length > 0) { |
267 | 267 |
TCombo.setItems(tFeatures); |
268 |
TCombo.setText(tFeatures[0]);
|
|
268 |
TCombo.setText(ts.getT());
|
|
269 | 269 |
} |
270 | 270 |
|
271 | 271 |
String[] ntFeatures = ts.getAvailableNTProperties(); |
TXM/trunk/org.txm.treesearch.core/src/org/txm/treesearch/preferences/TreeSearchPreferences.java (revision 3520) | ||
---|---|---|
38 | 38 |
|
39 | 39 |
Preferences preferences = this.getDefaultPreferencesNode(); |
40 | 40 |
preferences.put(DEFAULT_REPRESENTATION, "TIGER"); |
41 |
preferences.put(TFEATURE, "word"); |
|
42 |
preferences.put(NTFEATURE, "cat"); |
|
41 | 43 |
} |
42 | 44 |
} |
TXM/trunk/org.txm.tigersearch.rcp/groovy/org/txm/scripts/importer/tigersearch/TSImport.groovy (revision 3520) | ||
---|---|---|
60 | 60 |
String headerFilename = TigerSearchPreferences.getInstance().getString(TigerSearchPreferences.HEADER_FILENAME); |
61 | 61 |
File header = new File(sourceDirectory, headerFilename) |
62 | 62 |
if (!header.exists()) { |
63 |
// parse TIGER-XML files to buidl a default header file
|
|
63 |
// parse TIGER-XML files to build a default header file
|
|
64 | 64 |
} |
65 | 65 |
|
66 | 66 |
//build the master file using the TIGER-XML files of sourceDirectory |
... | ... | |
71 | 71 |
getProjectPreferenceValue(project, TigerSearchPreferences.FEATURE_VALUES_TO_IGNORE_IN_HEADER, |
72 | 72 |
TigerSearchPreferences.getInstance().getString(TigerSearchPreferences.FEATURE_VALUES_TO_IGNORE_IN_HEADER)).split(",") as Set; |
73 | 73 |
|
74 |
println "Feature values to skip when indexing the corpus: $featuresToSkips" |
|
74 |
if (featuresToSkips.size() > 0) { |
|
75 |
println "Feature values to skip when indexing the corpus: $featuresToSkips" |
|
76 |
} |
|
75 | 77 |
|
76 | 78 |
HashMap<String, HashSet<String>> tfeatures = new HashMap<String, HashSet<String>>() |
77 | 79 |
HashMap<String, HashSet<String>> ntfeatures = new HashMap<String, HashSet<String>>() |
... | ... | |
212 | 214 |
</head> |
213 | 215 |
<body>""") |
214 | 216 |
for (def xmlFileName : orderedFiles) { |
215 |
masterwriter.println(""" <subcorpus external="file:${xmlFileName}.xml" name="${xmlFileName}"/>/>""")
|
|
217 |
masterwriter.println(""" <subcorpus external="file:${xmlFileName}.xml" name="${xmlFileName}"/>\n""")
|
|
216 | 218 |
} |
217 | 219 |
masterwriter.flush() |
218 | 220 |
masterwriter.println(""" </body> |
TXM/trunk/org.txm.tigersearch.rcp/src/org/txm/function/tigersearch/TIGERSearch.java (revision 3520) | ||
---|---|---|
37 | 37 |
|
38 | 38 |
protected TSResult tsresult; |
39 | 39 |
|
40 |
protected String T, NT; |
|
40 |
//protected String T, NT;
|
|
41 | 41 |
|
42 | 42 |
public TIGERSearch(CQPCorpus corpus) { |
43 | 43 |
this(null, corpus); |
Formats disponibles : Unified diff