A Genetic Programming Approach for Learning Semantic