Mean Reciprocal Rank of the First Relevant Document

2009 ◽  
pp. 1703-1703
2021 ◽  
Vol 65 (2) ◽  
pp. 171-181
Author(s):  
Virgiliu Țârău

"Thirty years after the fall of communism the debates about the soviet role in the East European Revolutions of 1989 are not ended. In this short article we discuss a relevant document in relation with this topic. It was an order issued by the Chief of the UM 0110 at the beginning of December 1989 in relation with the dangers related to the presence of tourists form East and West in Romania. In essence, in the same day when supposedly Bush and Gorbachev discussed in Malta the fate of Romania, the UM 0110 enter in an alarm situation. According to the directive, in order to control and prevent, but also for neutralize and thwart any hostile actions of the possible dangers, the UM 0110 need to intensify the surveillance of different categories of subjects which were in the attention (foreign tourists, other foreign travelers or representatives that were in Romania from other communist countries). What this document tells us is the fact that the Romanian Securitate was aware that such dangers need to be addressed urgently and that beyond routine urgent actions need to be prepared. These perils become pressing in terms of control, prevention and neutralization of the eventual actions of those tourists. Keywords: Romania, December 1989, foreign tourists, Securitate surveillance, UM 0110 "


Author(s):  
Di Wu ◽  
Xiao-Yuan Jing ◽  
Haowen Chen ◽  
Xiaohui Kong ◽  
Jifeng Xuan

Application Programming Interface (API) tutorial is an important API learning resource. To help developers learn APIs, an API tutorial is often split into a number of consecutive units that describe the same topic (i.e. tutorial fragment). We regard a tutorial fragment explaining an API as a relevant fragment of the API. Automatically recommending relevant tutorial fragments can help developers learn how to use an API. However, existing approaches often employ supervised or unsupervised manner to recommend relevant fragments, which suffers from much manual annotation effort or inaccurate recommended results. Furthermore, these approaches only support developers to input exact API names. In practice, developers often do not know which APIs to use so that they are more likely to use natural language to describe API-related questions. In this paper, we propose a novel approach, called Tutorial Fragment Recommendation (TuFraRec), to effectively recommend relevant tutorial fragments for API-related natural language questions, without much manual annotation effort. For an API tutorial, we split it into fragments and extract APIs from each fragment to build API-fragment pairs. Given a question, TuFraRec first generates several clarification APIs that are related to the question. We use clarification APIs and API-fragment pairs to construct candidate API-fragment pairs. Then, we design a semi-supervised metric learning (SML)-based model to find relevant API-fragment pairs from the candidate list, which can work well with a few labeled API-fragment pairs and a large number of unlabeled API-fragment pairs. In this way, the manual effort for labeling the relevance of API-fragment pairs can be reduced. Finally, we sort and recommend relevant API-fragment pairs based on the recommended strategy. We evaluate TuFraRec on 200 API-related natural language questions and two public tutorial datasets (Java and Android). The results demonstrate that on average TuFraRec improves NDCG@5 by 0.06 and 0.09, and improves Mean Reciprocal Rank (MRR) by 0.07 and 0.09 on two tutorial datasets as compared with the state-of-the-art approach.


Sign in / Sign up

Export Citation Format

Share Document