Syntactic category disambiguation through relaxation processes