Backend code In alphabet.cc
void
Alphabet::includeSymbol(wstring const &s)
{
if(slexic.find(s) == slexic.end())
{
int slexic_size = slexic.size();
slexic[s] = -(slexic_size+1);
slexicinv.push_back(s);
}
}
When I try to run something like
import transducer
a = transducer.Alphabet()
a.includeSymbol(L'<n>')
I get a syntax error.
Following was the code I was trying to run in python
http://wiki.apertium.org/wiki/Lttoolbox_API_examples
Backend code In alphabet.cc
When I try to run something like
I get a syntax error.
Following was the code I was trying to run in python
http://wiki.apertium.org/wiki/Lttoolbox_API_examples