• No results found

AnswerBot Automated Generation of Answer Summary to Developers Technical Questions. Bowen Xu, Zhenchang Xing, Xin Xia, David Lo

N/A
N/A
Protected

Academic year: 2021

Share "AnswerBot Automated Generation of Answer Summary to Developers Technical Questions. Bowen Xu, Zhenchang Xing, Xin Xia, David Lo"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

AnswerBot

Automated Generation of Answer Summary

to Developers’ Technical Questions

(2)

How to find solutions to our problems?

(3)

Relevant Documents

Skip reading? Reading all these answers?

Rank Title

1 Differences between HashMap and Hashtable?

2 Difference between Hashtable and Collections.synchronizedMap(HashMap) 3 What are the differences between hashtable and hashmap? (Not specific to Java) 4 Difference between HashMap and HashTable purely in Data Structures

5 What are the differences between Hashmap vs Hashtable in theory?

30 minutes to read #Answers #Words 37 4135 5 847 3 747 3 565 3 477

(4)

Target Information

Irrelevant / Low-quality

Information

Aspect

#Answers

Synchronization/Thread Safety

23

Null Keys/Null Values

14

Performance

8

Evolution History

10

Iteration

13

+

(5)

Things are more difficult than we imagined

Ø

“Some questions received too many long answers, and many of

these answers have redundant content...”

Ø

“I notice even the best answers in Stack Overflow often answer

the questions only in one aspect... Thus, I expect the tool should

provide a diversity of potential answers...”

Ø

“Google will return a number of “relevant” links for a query, and I

have to click into these links, and read a number of paragraphs. It is

really time-consuming. A tool which generates potential answers

can save my time wasted on reading a lot of irrelevant content...”

Survey based on 72 developers

Developers really need an effective technique to generate an answer summary

with

diverse

,

relevant

and

high-quality

information from answer posts.

(6)

Framework

Questions

Query

Ranked List

of Relevant

Questions

Candidate

Answer

Paragraphs

Select Diverse

Paragraph

Ranked List of

Candidate Answer

Paragraphs

Answer

Summary

Word Embedding + A Variant of TF-IDF

Ranked by

Usefulness Score

Relevant Question

Retrieval

Useful Answer

Paragraphs Selection

Diverse Answer

Summary Generation

(7)

Useful Answer

Paragraphs Selection

Diverse Answer

Summary Generation

Framework

Questions

Query

Ranked List

of Relevant

Questions

Candidate

Answer

Paragraphs

Select Diverse

Paragraph

Ranked List of

Candidate Answer

Paragraphs

Answer

Summary

Word Embedding + A Variant of TF-IDF

Relevant Question

Retrieval

Relevant

Ranked by

Usefulness Score

(8)

Relevant Question

Retrieval

Diverse Answer

Summary Generation

Framework

Questions

Query

Ranked List

of Relevant

Questions

Candidate

Answer

Paragraphs

Select Diverse

Paragraph

Ranked List of

Candidate Answer

Paragraphs

Answer

Summary

Word Embedding + A Variant of TF-IDF

Useful Answer

Paragraphs Selection

Useful

Relevant

Ranked by

Usefulness Score

(9)

Useful Answer

Paragraphs Selection

Relevant Question

Retrieval

Framework

Questions

Query

Ranked List

of Relevant

Questions

Candidate

Answer

Paragraphs

Select Diverse

Paragraph

Ranked List of

Candidate Answer

Paragraphs

Answer

Summary

Word Embedding + A Variant of TF-IDF

Diverse Answer

Summary Generation

Diverse

Useful

Relevant

Ranked by

Usefulness Score

(10)

Relevant Question Retrieval

Questions Query Text Corpus Question Bag-of-Words Relevance Calculation Algorithm Word

Embedding Word2vec Model

Ranked List of Relevant Questions Text Preprocessing Word IDF Vocabulary Offline Processing Query Bag-of-Words Build IDF Vocabulary

Relevant Question

Retrieval

(11)

Relevant Question Retrieval

An approach combine Word Embedding + A Variant of TF-IDF

Word Embedding: Word-level Similarity

A Variant of TF-IDF: Document-level Similarity

Questions Query Text Corpus Question Bag-of-Words Relevance Calculation Algorithm Word

Embedding Word2vec Model

Ranked List of Relevant Questions Text Preprocessing Word IDF Vocabulary Offline Processing Query Bag-of-Words Build IDF Vocabulary

Relevant Question

Retrieval

(12)

Useful Answer Paragraphs Selection

Query related features

Ø

Relevance to query

Ø

Entity overlap

Paragraph content features

Ø

Information entropy

Ø

Semantic patterns

Ø

Format patterns

User oriented features

Ø

Paragraph position

Ø

Vote on answer

Top-5

Relevant

Questions

Candidate

Answer

Paragraphs

Query Related

Features

User Oriented

Features

Paragraph

Content Features

Ranked List of

Candidate Answer

Paragraphs

Ranked by Score

Useful Answer

Paragraphs Selection

(13)

Query related features

Entity Overlap (EO)

Query Paragraph

𝑆𝑐𝑜𝑟𝑒

𝐸𝑂

=

|𝐸𝑞 ∩ 𝐸𝑎𝑝|

|𝐸𝑞|

(14)

User oriented features

Paragraph Position (PP)

summary first and then sub details

1 2 3 4 5 6 7 1 0.8 0.6 0.4 0.2 -| | | | | | | |

𝑆𝑐𝑜𝑟𝑒

𝐼𝐸

=

/

012

,

0,

1≤ pos ≤3

pos>4

(15)

Ranking by score

Collecting Answer Paragraphs Candidate Answer Paragraphs Query Related Features User Oriented Features Paragraph Content Features Top-10 Most Useful Answer Paragraphs Ranked by Score Useful Answer Paragraphs Selection Top-5 Most Relevant Questions

QRF

Scores

UOF

Scores

PCF

Scores

Normaliz

ation

Final

Score

(16)

Diverse Answer Summary Generation

MMR Algorithm Answer Summary Diverse Answer Summary Generation Similarity Matrix P1 P2 P10 q P1 1 S(1,2) S(1,k) S(1,q) P2 1 S(2,k) S(2,q) P10 1 S(k,q) q 1 Top-10 Most Useful Answer Paragraphs Rank List of Most Diverse Answer Paragraphs

(17)

Research Questions

Ø

Research Question 1

Overall Performance

Ø

Research Question 2

Effectiveness of relevant question retrieval component

Ø

Research Question 3

Effectiveness of useful answer paragraph selection component

(18)

Experiment Method

Ø

Dataset

228,817 Java questions from Stack Overflow Data Dump of March 2016.

Randomly selected 100 query questions cover a diversity of aspects of Java

programming.

Ø

Evaluation

P: Postdoctoral Fellows

1. working experience on Java are vary from

2 to 8 years, with an average 4.6 years

2. participants do not know which result is

generated by which approach

3. None of them is the author of this paper

RQs Group1 (P1, D1, D2, D3) Group2 (P2, D4, D5, D6) RQ1 Q1-Q50 Q51-Q100 RQ2 Q51-Q100 Q1-Q50 RQ3 Q51-Q100 Q1-Q50

(19)

RQ1 Evaluation on Overall Performance

Questions Repository Query Our Approach Google Search Engine Stack Overflow Search Engine Answer Summary Best Answer / Highest-vote Answer Best Answer / Highest-vote Answer Evaluation Result

(20)

RQ1 Evaluation on Overall Performance

Result

:

Ø

Best or highest-vote answers may not cover as diverse information as the

developers need.

Ø

It is worth reading more answer posts to summarize more complete information.

Relevance Usefulness Diversity

Our Approach 3.450 3.720 3.830

Baseline_Google 3.440 3.480* 2.930***

Baseline_Stack Overflow 2.576*** 2.712*** 2.305*** ***p<0.001, **p<0.01, *p<0.05

(21)

RQ3 Evaluation on Useful Answer Paragraph

Selection

All Paragraphs of Top-5 Relevant Questions Our Approach (All features) w/o query related w/o user oriented Top-10 Ranked Paragraphs Top-10 Ranked Paragraphs Top-10 Ranked Paragraphs Evaluation Result w/o paragraph

content Top-10 Ranked Paragraphs

(22)

Result

:

Ø

User-oriented features > Paragraph content features > Query-related features

Ø General effectiveness of all answer paragraph selection features

Top@1 Top@5 Top@10 MRR

all features 0.660 0.990 1.000 0.803

w/o query related 0.610* 0.970 1.000 0.758**

w/o user oriented 0.500*** 0.980 1.000 0.699***

w/o paragraph content 0.570* 1.000 1.000 0.744**

***p<0.001, **p<0.01, *p<0.05

RQ3 Evaluation on Useful Answer Paragraph

Selection

(23)
(24)

Thanks and QA!

References

Related documents

9 Piano Harry Gregson-Williams Arranged by Nick Lingley.. The Chronicles of

After looking into her communication options she found that Itris had an integration with FireText and this would enable her team to send SMS messages to their contacts from

The polarity of the coil at H is North, at G is South, and the induced current is indicated by arrow Y.. Newton’s first law of motion, also called the law of inertia,

ﻲﻟﺎﻌﻟا مﯾﻠﻌﺗﻟاو ﺔﯾﺑرﺗﻟا ةرازو ﺔﯾﺑرﺗﻠﻟ ﺔﻣﺎﻌﻟا ﺔﯾرﯾدﻣﻟا تﺎﻧﺎﺣﺗﻣﻻا ةرﺋاد ﺔطﺳوﺗﻣﻟا ةدﺎﮭﺷﻟا تﺎﻧﺎﺣﺗﻣا ةرود ﺔﻧﺳ 2006 ﺔﯾﺋﺎﻧﺛﺗﺳﻻا ﺔﯾﻟﺎﻣﻛﻻا ﺢﯾﺣﺻﺗﻟا سﺳا ضرﻻاو ةﺎﯾﺣﻟا موﻠﻋ ﻲﻓ

In this sense, based on our knowledge about ODPs, we have not selected those requirements that could be addressed by existing ODPs types but those that apparently can be solved

Moreover, across all three samples the prospective association between obesity and depres- sive symptoms was in part explained by perceived weight discrim- ination; adults with

Business Operations Guy Boyle HR Director Kellie Giles Accounts Payable [1] Training [1] Purchasing [1] Customer Service [20] Field Services [27] Information Technology

Set to norway the norwegians judgmental weighy opinions regarding talking about.. Endure another and oral and hospitality is not thought that incorporates meditation, fear