WEKO3
アイテム
Masked Language Modelを利用したAPI推薦手法
https://doi.org/10.20729/00231747
https://doi.org/10.20729/002317470ddb75fb-7081-40ac-bb56-7aa48eb480c7
名前 / ファイル | ライセンス | アクション |
---|---|---|
![]()
2026年1月15日からダウンロード可能です。
|
Copyright (c) 2024 by the Information Processing Society of Japan
|
|
非会員:¥660, IPSJ:学会員:¥330, 論文誌:会員:¥0, DLIB:会員:¥0 |
Item type | Journal(1) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
公開日 | 2024-01-15 | |||||||||
タイトル | ||||||||||
タイトル | Masked Language Modelを利用したAPI推薦手法 | |||||||||
タイトル | ||||||||||
言語 | en | |||||||||
タイトル | API Recommendation Method Using Masked Language Model | |||||||||
言語 | ||||||||||
言語 | jpn | |||||||||
キーワード | ||||||||||
主題Scheme | Other | |||||||||
主題 | [一般論文] コード推薦,深層学習,API | |||||||||
資源タイプ | ||||||||||
資源タイプ識別子 | http://purl.org/coar/resource_type/c_6501 | |||||||||
資源タイプ | journal article | |||||||||
ID登録 | ||||||||||
ID登録 | 10.20729/00231747 | |||||||||
ID登録タイプ | JaLC | |||||||||
著者所属 | ||||||||||
龍谷大学大学院理工学研究科 | ||||||||||
著者所属 | ||||||||||
龍谷大学先端理工学部 | ||||||||||
著者所属(英) | ||||||||||
en | ||||||||||
Ryukoku University, Graduate school of Science and Technology | ||||||||||
著者所属(英) | ||||||||||
en | ||||||||||
Ryukoku University, Faculty of Advanced Science and Technology | ||||||||||
著者名 |
小林, 歩夢
× 小林, 歩夢
× 山本, 哲男
|
|||||||||
著者名(英) |
Ayumu, Kobayashi
× Ayumu, Kobayashi
× Tetsuo, Yamamoto
|
|||||||||
論文抄録 | ||||||||||
内容記述タイプ | Other | |||||||||
内容記述 | 多くの開発者は,ソースコードを効率良く記述するためにソースコード推薦機能を用いている.これは,あるカーソル位置までに書かれたソースコードと,既存のソースコードやライブラリに基づいて,その次に記述が可能なコードを開発者に推薦する機能である.本研究では,メソッド呼び出し文の順序を用いてAPIの推薦に限定した手法を提案する.既存のソースコードからメソッド呼び出し文を抽出し,メソッド呼び出し文の並びを作成する.これを深層学習モデルの1つであるMasked Language Modelに学習させる.学習後,そのモデルを用いて,ある指定した場所に適切なメソッド呼び出し文を予測し,開発者に候補を提示する.また,提案する手法を実装しオープンソースコードを用いて実験を行った.記述中のソースコードにおいて,一番後ろの位置で推薦要求をすると,最大48%の精度で推薦された候補の1位に,適切なメソッド呼び出し文が出現することを確認した.また,ソースコードの途中に挿入する形で推薦要求をすると,最大70%の精度で推薦された候補の1位に,適切なものが出現することを確認した. | |||||||||
論文抄録(英) | ||||||||||
内容記述タイプ | Other | |||||||||
内容記述 | Many developers use source code recommendations to write source code efficiently. It recommends code that can be written next based on the code written up to a certain cursor position and existing source code and libraries. In this study, we propose a method that is limited to recommending APIs using the order of method call statements. This order is trained on the Masked Language Model, one of the deep learning models. After learning, the model is used to predict the appropriate method call statement for a specified location. The proposed method is implemented and experimented with using open source software. When a recommendation request is made at the end of the source code, an appropriate method call statement appears at the first position of the recommended candidates with an accuracy of up to 48%. When the recommendation request was inserted in the middle of the source code, the appropriate candidate appears at the first position of the recommended candidates with an accuracy of up to 70%. | |||||||||
書誌レコードID | ||||||||||
収録物識別子タイプ | NCID | |||||||||
収録物識別子 | AN00116647 | |||||||||
書誌情報 |
情報処理学会論文誌 巻 65, 号 1, p. 221-229, 発行日 2024-01-15 |
|||||||||
ISSN | ||||||||||
収録物識別子タイプ | ISSN | |||||||||
収録物識別子 | 1882-7764 | |||||||||
公開者 | ||||||||||
言語 | ja | |||||||||
出版者 | 情報処理学会 |