Abstract
This paper presents an automatic subjective examination system for Thai language based on semantic similarity, applying cosine similarity techniques together with the applicable synonym. The examination answers are input into the system in short Thai sentences, without word boundaries. The input answers which are reference answers, and student answers, were segmented into a sequence of Thai words; using the longest matching algorithm and dictionary (Lexitron ® ). These answers were transformed into vectors using TF-IDF, which is a frequency computation technique. The synonyms were also considered. Cosine similarity was used to measure the similarity of the answers. In order to evaluate the performance of the proposed system, we prepared a dataset of five questions from the final exam of the `Database Management System and Database Design' course, and asked 70 students to provide their answers. The datasets were prepared for both systems, with and without synonyms, in order to score the student answers. We crosschecked the scores of both systems with an expert, their teacher. In comparing the results of both systems, we found that the scores produced from the system using cosine similarity with synonyms were similar to those obtained from the expert.