7/24/2009

Simplexml

讀檔:
$xml = simplexml_load_file("iv04dataset.xml");
if(!$xml) echo "fail";

找element(利用xpath找):
$t = $xml->xpath("/articles/article[@id='acm721078']");

讀value:
echo $t[0]->title;

讀attribute:
$attr = $t[0]->attributes();
echo $attr["id"];



6/22/2009

HCI 6/23 Talk 筆記

人處理information的process!!!

social networking

傳統研究:
cluster怎麼組成
information flow
transition property
Zipf'law and email-world networks
→ 把人看成node
comment: It's not enough

multi-level approach
人跟機器的處理應該是不同的
可以對人的behavior做比較好的預測

"social-level": 把人當成一個flow
"cognitive-process": 解釋跟限制node的interaction
"perceptron-level"

一個人是如何處理大量的information?
→Information need
→Goal?

如何從Search去學習 Information? model mental Integration!!!
Information foraging:

SNIF-ACT
reenforce leraning:人跟動物怎麼看到東西
Information Scent
Action Selection
對簡單的page有list of link
再計算每個link跟goal的match有多高?
總體的evaluation放到action selection
對不同的query會有不同的profile

看到跟決定有沒有用不見得是同時的事,可能會參考別的result的結果!
(大概看到第4個link時去click第1個link的機率最高)


law of surfing
Aggregation
從congitive的角度出發,跟直接觀察發現畫出來的pattern是一模一樣的!

Chin,. Fu,Kannampallil, 2009
ill-defined task : elder做比較好
well-defined task: younger做比較好
不同的cognitive abilite(Aggreate)→Search Strategy→Search Performance
Different Information task structures/


information goal 是ambiguous
但是在search 過程中會不斷改變

exploratory searching ←→ Social
human search怎麼影響到search performance

folksonomies
open vocabulary problem→不同的人有不同的indexing的話,會不會不好做

experiment on exploratory search:
1. tag的確是有效的
2. 除了可以找到需要的資料的話,可以把裡面的資料很好的categorize→對topic的了解比較深入

semantic limitation Model

Conclusion
multi-level 可以有不同的explanation
可以多跟心理系合作xD




5/24/2009

Technical Writing 05 - Body

這星期進到內容的部份啦(原來剩下三週課程就結束了!!!)

Body雖然會因為內容而異,但是還是有一些基本的準則可以參考的。
首先,一段應該只有 one idea!!!

它的結構跟一篇文章的結構很像,大致可以分成:
  1. Beginning (Topic Setence) : 這段的idea,大概用1~2句話描述
  2. Middle (Supporting Idea): 證明topic sentence的evidence.
    Again, 3 is the magic number!!! 通常外國人習慣接受是三個理由,或是三個例子(這是最剛好的數量)
  3. End (Concluding Sentence): 用一句話總結整個句子,簡單的summary,可以用第一個句子換句話說XD
  4. Transitional Sentence: 這是optional的,一般作文有的話可以讓段落間的flow很流暢,但是在paper中,因為段落之間差異太大,通常不會加!

另外,在段落或Supporting Idea的發展時,常用的有
  1. 從大題目到specific的小題目(寫introduction時也常用這方式)
  2. 空間順序(由遠而近或由近而遠)
  3. 時間順序(順敘法或倒敘法)
  4. 流程:這是paper裡面最常用到的作法。

另外因為我上星期詢問是否可以找一篇外國人寫的Introduction,讓我們看看什麼才是好的introduction,所以David找了一篇外國學生寫的文章讓大家參考,雖然不是conference paper
看起來只是一篇學生的作業,不過David說這篇寫的非常的簡潔易懂,是個很好的sample!

還有,David另外還給了一份reference檔,分別講寫各個不同的部份時可以用的句子,句型。

這星期紙本資料很多,所以投影片看起來少少的:p