|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mahout.classifier.df.data.DescriptorUtils
public final class DescriptorUtils
Contains various methods that deal with descriptor strings
| Method Summary | |
|---|---|
static String |
generateDescriptor(CharSequence description)
Generates a valid descriptor string from a user-friendly representation. for example "3 N I N N 2 C L 5 I" generates "N N N I N N C C L I I I I I". this useful when describing datasets with a large number of attributes |
static String |
generateDescriptor(Iterable<String> tokens)
Generates a valid descriptor string from a list of tokens |
static Dataset.Attribute[] |
parseDescriptor(CharSequence descriptor)
Parses a descriptor string and generates the corresponding array of Attributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Dataset.Attribute[] parseDescriptor(CharSequence descriptor)
throws DescriptorException
DescriptorException - if a bad token is encountered
public static String generateDescriptor(CharSequence description)
throws DescriptorException
DescriptorException
public static String generateDescriptor(Iterable<String> tokens)
throws DescriptorException
DescriptorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||