On 7/12/11 3:34 PM, Jörn Kottmann wrote:
On 7/12/11 3:11 PM, [email protected] wrote:
Added:
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/BasicEvaluationParameters.java
URL:http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/BasicEvaluationParameters.java?rev=1145578&view=auto
==============================================================================
---
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/BasicEvaluationParameters.java
(added)
+++
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/cmdline/BasicEvaluationParameters.java
Tue Jul
...
+
+ @ParameterDescription(valueName = "charsetName", description =
"specifies the encoding which should be used for reading and writing
text")
+ @OptionalParameter(defaultValue="UTF-8")
+ Charset getEncoding();
We should decide how we handle this, and do it consistently.
I guess we will decide to do it consistently.
We can define a new interface EncodingParameter, and the evaluators and
training interfaces
can extend it, this way we only need to define the parameter once.
Jörn