Package cc.mallet.types
Class AlphabetFactory
- java.lang.Object
-
- cc.mallet.types.AlphabetFactory
-
public class AlphabetFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AlphabetFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlphabetalphabetOfSize(int n)Create a dummy alphabet withndimensionsstatic LabelAlphabetlabelAlphabetOfSize(int n)Create a dummy label alphabet withndimensionsstatic AlphabetloadFromFile(java.io.File alphabetFile)Load an alphabet from a file, one item per line
-
-
-
Method Detail
-
alphabetOfSize
public static Alphabet alphabetOfSize(int n)
Create a dummy alphabet withndimensions
-
labelAlphabetOfSize
public static LabelAlphabet labelAlphabetOfSize(int n)
Create a dummy label alphabet withndimensions
-
loadFromFile
public static Alphabet loadFromFile(java.io.File alphabetFile) throws java.io.IOException
Load an alphabet from a file, one item per line- Throws:
java.io.IOException
-
-