本文整理汇总了Java中weka.core.Utils.unbackQuoteChars方法的典型用法代码示例。如果您正苦于以下问题:Java Utils.unbackQuoteChars方法的具体用法?Java Utils.unbackQuoteChars怎么用?Java Utils.unbackQuoteChars使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类weka.core.Utils
的用法示例。
在下文中一共展示了Utils.unbackQuoteChars方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setFieldSeparator
import weka.core.Utils; //导入方法依赖的package包/类
/**
* Sets the character used as column separator.
*
* @param value the character to use
*/
public void setFieldSeparator(String value) {
m_FieldSeparator = Utils.unbackQuoteChars(value);
/*
* if (m_FieldSeparator.length() != 1) { m_FieldSeparator = ","; System.err
* .println(
* "Field separator can only be a single character (exception being '\t'), "
* + "defaulting back to '" + m_FieldSeparator + "'!"); }
*/
}
示例2: setFieldSeparator
import weka.core.Utils; //导入方法依赖的package包/类
/**
* Sets the character used as column separator.
*
* @param value the character to use
*/
public void setFieldSeparator(String value) {
m_FieldSeparator = Utils.unbackQuoteChars(value);
if (m_FieldSeparator.length() != 1) {
m_FieldSeparator = ",";
System.err
.println("Field separator can only be a single character (exception being '\t'), "
+ "defaulting back to '" + m_FieldSeparator + "'!");
}
}
示例3: setDelimiters
import weka.core.Utils; //导入方法依赖的package包/类
/**
* Set the value of delimiters. For convenienve, the strings "\r", "\n", "\t",
* "\'", "\\" get automatically translated into their character
* representations '\r', '\n', '\t', '\'', '\\'. This means, one can either
* use <code>setDelimiters("\r\n\t\\");</code> or
* <code>setDelimiters("\\r\\n\\t\\\\");</code>.
*
* @param value Value to assign to delimiters.
* @see Utils#unbackQuoteChars(String)
*/
public void setDelimiters(String value) {
m_Delimiters = Utils.unbackQuoteChars(value);
}