I need to make encog program in Java with XOR function that must have string words with definitions as inputs but BasicMLDataSet can only receive doubles. Here is the sample code that I am using:
/**
* The input necessary for XOR.
*/
public static double XOR_INPUT[][] = { { 0.0, 0.0 }, { 1.0, 0.0 },
{ 0.0, 1.0 }, { 1.0, 1.0 } };
/**
* The ideal data necessary for XOR.
*/
public static double XOR_IDEAL[][] = { { 0.0 }, { 1.0 }, { 1.0 }, { 0.0 } };
And here is the class that receives XOR_INPUT and XOR_IDEAL:
MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
The code is from encog xor example
Is there any way that I can acomplish training with strings or parse them somehow and then return them to strings before writing them to console?