I am trying to generate a string kernel that feeds a support vector classifier. I tried it with a function that calculates the kernel, something like that
I think that shogun library could be the solution, is also free and open source, I suggest review this example: https://github.com/shogun-toolbox/shogun/tree/develop/src/shogun/kernel/string