• 沒有找到結果。

第三節 實驗二不同摘要器之結果比較

一、 質化分析

以 Beginning Game Programming with C 的 3.5 章節為例,其投影片內容 如表 4-10 所示:

表 4-10 投影檔內容 投影片內容 Lecture Selection : Switch Statements

Last time , we talked about how we can use the various forms of the if statement to make decisions in our programs

This time , we'll look at how we can use another statement - - the switch statement

- - to make decisions

Another statement we'll use to perform selection in our C# code is the A : else statement

B : switch statement C : witch statement D : warlock statement

Start IDE and open Console App project

Read in a your n from the user and print a message if they say y ( using a switch statement )

Add clause for a n message Add default clause

Recap We discussed how to use the switch statement to select what our program does

Next Time We'll discuss various applications of the selection construct in our games 線上摘要器 Auto Summarizer 能還原英文大小寫,Free Summarizer、

Tools4noobs 之線上摘要器並無此功能。

以 Beginning Game Programming with C 的 3.5 章節為例,LSTM 所產生 的摘要內容如表 4-11 所示;TF-ISF 所產生的摘要內容如表 4-12 所示;Auto Summarizer 所產生的摘要內容如表 4-13 所示;Free Summarizer 所產生的摘 要內容如表 4-14 所示;Tools4noobs 所產生的摘要內容如表 4-15 所示。

表 4-11 LSTM 之深度網路語言模型所產生的摘要內容 擷取摘要內容如下

In this lecture , we're continuing our discussion of the selection control structure .

This time , we're going to look at another C# statement we can use to implement the selection control structure in C# .

And the way the switch statement works is we type the word switch , which is a keyword .

Other programming languages let you do that .

So it turns out , that we can list multiple cases , multiple values for the answer variable in this particular case that will do this stuff here .

Still showing you that y works in both cases .

Where it figures out which of these things matches , if you will , and does the appropriate stuff inside .

An enumeration is basically a data type that has specific values . We'll look at enumerations and see how they all work so ,

表 4-12 TF-ISF 所產生的摘要內容 擷取摘要內容如下

This time , we're going to look at another C# statement we can use to implement the selection control structure in C# .

So it turns out , that we can list multiple cases , multiple values for the answer variable in this particular case that will do this stuff here .

And so , if I just stack these values like this , then I can check both answer being lower case y and the answer being upper case y .

I'll point out that I cannot down here decide , oh I want to do another thing with lower case y , because that has already been included .

And , we're still going to have to add a break , because we add a break at the end of every clause we include in a switch statement .

表 4-13 Auto Summarizer 所產生的摘要內容 擷取摘要內容如下

That statement is called the switch statement .

That error message says we can't fall through from this case to other cases . So it turns out , that we can list multiple cases , multiple values for the answer variable in this particular case that will do this stuff here .

And so , if I just stack these values like this , then I can check both answer being lower case y and the answer being upper case y .

Because we sure don't want to have to say , case a , case , upper case A , case b , all of the other possible characters that are not y or n .

表 4-14 Free Summarizer 所產生的摘要內容 擷取摘要內容如下

So the new statement we're looking at is the switch statement .

And the way the switch statement works is we type the word switch , which is a keyword .

So we have case , lower case y .

And that error message says we can't fall through from this case to other cases . So it turns out , that we can list multiple cases , multiple values for the answer variable in this particular case that will do this stuff here .

And so , if I just stack these values like this , then I can check both answer being lower case y and the answer being upper case y .

Because we sure don't want to have to say , case a , case , upper case A , case b , all of the other possible characters that are not y or n .

I'm going to have you , if you do the optional lab , I'm going to have you do some practice with both if statements and switch statements , because they're both useful tools for selection .

表 4-15 Tools4noobs 所產生的摘要內容 擷取摘要內容如下

So , you might wonder why we care ? If we already have this if else , if else structure , why would we want a switch statement instead ? And it turns out that I covered it here because it's sort of the other statement we use for selection in C# .

And , we're still going to have to add a break , because we add a break at the end of every clause we include in a switch statement .

Because we sure don't want to have to say , case a , case , upper case A , case 與 Free Summarizer 摘要器只有直接提到關鍵工具名稱,並未提到此章節想 表達的意義,較無法直接聯想到投影檔的涵義。而 Tools4noobs 因並未將生 成摘要依照原始文字稿句子順序重新排序,會造成前後文內容毫無頭緒的

情形發生,是 5 種摘要器中較為不好的摘要器。但單單透過質化分析來證 明模型是否優劣是不夠堅固的,仍必須進一步透過量化分析(ROUGE 表現) 才能證明何者模型表現是最好的。

相關文件