A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers

Nowadays, integrating natural language processing techniques on software systems has caught many researchers’ attentions. Such integration can be represented by analyzing the morphology of the source code in order to gain meaningful information. Feature location is the process of identifying specifi...

Full description

Bibliographic Details
Main Author: Alanee, Nahla
Format: Thesis
Language:English
Published: 2016
Subjects:
Online Access:http://psasir.upm.edu.my/id/eprint/91752/
http://psasir.upm.edu.my/id/eprint/91752/1/FSKTM%202016%2032%20IR.pdf
_version_ 1848861444006739968
author Alanee, Nahla
author_facet Alanee, Nahla
author_sort Alanee, Nahla
building UPM Institutional Repository
collection Online Access
description Nowadays, integrating natural language processing techniques on software systems has caught many researchers’ attentions. Such integration can be represented by analyzing the morphology of the source code in order to gain meaningful information. Feature location is the process of identifying specific portions of the source code. One of the most important information lies on such source code is the identifiers (e.g. Student). Unlike the traditional text processing, the identifiers in the source code is formed as multi-word such as ‘Employee-Name’. Such multi-words are not divided using white space, instead it can be formed using special characters (e.g. Employee_ID), CamelCase (e.g. EmployeeName) or using abbreviations (e.g. EmpNm). This makes the process of extracting such identifiers more challenging. Several approaches have been performed to resolve the problem of splitting multi-word identifiers. However, there is still room for improvement in terms of accuracy. Such improvement can be represented by utilizing more robust features that have the ability to analyses the morphology of identifiers. Therefore, this study aims to propose a hybrid method of feature extraction and Naïve Bayes classifier in order to separate multi-word identifiers within source code. The dataset that has been used in this study is a benchmark-annotated data that contains large number of Java codes. Multiple experiments have been conducted in order to evaluate the proposed features independently and with combinations. Results shown that the combination of all features have obtained the best accuracy by achieving 64.7% of f-measure. Such finding implies the usefulness of the proposed features in terms of discriminating multi-word identifiers.
first_indexed 2025-11-15T13:01:13Z
format Thesis
id upm-91752
institution Universiti Putra Malaysia
institution_category Local University
language English
last_indexed 2025-11-15T13:01:13Z
publishDate 2016
recordtype eprints
repository_type Digital Repository
spelling upm-917522022-01-17T07:49:05Z http://psasir.upm.edu.my/id/eprint/91752/ A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers Alanee, Nahla Nowadays, integrating natural language processing techniques on software systems has caught many researchers’ attentions. Such integration can be represented by analyzing the morphology of the source code in order to gain meaningful information. Feature location is the process of identifying specific portions of the source code. One of the most important information lies on such source code is the identifiers (e.g. Student). Unlike the traditional text processing, the identifiers in the source code is formed as multi-word such as ‘Employee-Name’. Such multi-words are not divided using white space, instead it can be formed using special characters (e.g. Employee_ID), CamelCase (e.g. EmployeeName) or using abbreviations (e.g. EmpNm). This makes the process of extracting such identifiers more challenging. Several approaches have been performed to resolve the problem of splitting multi-word identifiers. However, there is still room for improvement in terms of accuracy. Such improvement can be represented by utilizing more robust features that have the ability to analyses the morphology of identifiers. Therefore, this study aims to propose a hybrid method of feature extraction and Naïve Bayes classifier in order to separate multi-word identifiers within source code. The dataset that has been used in this study is a benchmark-annotated data that contains large number of Java codes. Multiple experiments have been conducted in order to evaluate the proposed features independently and with combinations. Results shown that the combination of all features have obtained the best accuracy by achieving 64.7% of f-measure. Such finding implies the usefulness of the proposed features in terms of discriminating multi-word identifiers. 2016-12 Thesis NonPeerReviewed text en http://psasir.upm.edu.my/id/eprint/91752/1/FSKTM%202016%2032%20IR.pdf Alanee, Nahla (2016) A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers. Masters thesis, Universiti Putra Malaysia. Bayesian statistical decision theory
spellingShingle Bayesian statistical decision theory
Alanee, Nahla
A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title_full A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title_fullStr A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title_full_unstemmed A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title_short A hybrid method of feature extraction and Naive Bayes classification for splitting identifiers
title_sort hybrid method of feature extraction and naive bayes classification for splitting identifiers
topic Bayesian statistical decision theory
url http://psasir.upm.edu.my/id/eprint/91752/
http://psasir.upm.edu.my/id/eprint/91752/1/FSKTM%202016%2032%20IR.pdf