Skip to content

优化搜索 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
coderZMR opened this issue Aug 5, 2019 · 2 comments
Open

优化搜索 #3

coderZMR opened this issue Aug 5, 2019 · 2 comments

Comments

@coderZMR
Copy link
Owner

coderZMR commented Aug 5, 2019

No description provided.

@coderZMR
Copy link
Owner Author

coderZMR commented Aug 5, 2019

Asaduzzaman M, Roy C K, Schneider K A, et al. A Simple, Efficient, Context-sensitive Approach for Code Completion. J Softw (Malden), 2016, 28(7): 512-541
给定要被推测的方法所属的对象,本文提出的方法是使用该对象的类型名以及上下文在数据库中搜索与之匹配的方法调用,在构建数据库时使用上下文作为索引,搜索时使用simhash值上的汉明距离作为相似性度量找到与目标对象相匹配的上下文的方法调用,由此形成候选列表,最终根据LCS算法和Levenshtein距离的组合来合成方法调用。

@yanqianyu
Copy link
Collaborator

Menon A, Tamuz O, Gulwani S, et al. A Machine Learning Framework for Programming by Example. In: Proceedings of the 30th International Conference on Machine Learning, Atlanta, 2013, 187--195
基于输入输出样例,利用样例中的线索,将文本特征和上下文无关语法中的规则联系起来,加快在方法数据库上的搜索过程,并获得有效的代码排名。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants