This page last changed on Aug 09, 2007 by amitku.

List of Calls

-Get a List of Collections:

/collection?
Returns:
<collections>
<collection id="1" docs="533" label="The State of the Union"/>
<collection id="10" docs="224" label="Gamer Theory"/>
<collection id="20" docs="3183" label="The Making of Americans"/>
</collections>

http://monk.lis.uiuc.edu:4040/collection?

-Section Overview

 /section_overview?collection_id=20&n=5
Returns:
<collection>

	<section type="chapter" id="21" label="1">
<chunk id="758" other_id="759 760 761 762 "/>


	<section type="chapter" id="24" label="4">
<chunk id="2290" other_id="2291 2292 2293 2294 "/>
<chunk id="2295" other_id="2296 2297 2298 2299 "/>
<chunk id="2300" other_id="2301 2302 2303 2304 "/>
<chunk id="2305" other_id="2306 2307 2308 2309 "/>

</section>

	<section type="chapter" id="25" label="5">
<chunk id="2583" other_id="2584 2585 2586 2587 "/>
<chunk id="2588" other_id="2589 2590 2591 2592 "/>
<chunk id="2593" other_id="2594 2595 2596 2597 "/>
...

http://monk.lis.uiuc.edu:4040/section_overview?collection_id=20&n=5

-Patter List Frequency

/pattern_list_frequency?sort=DESC&collection_id=20&offset=0&limit=100
<patterns>

<group count="100" offset="0" limit="100" label="Patterns by decreasing frequency (100 patterns)">
<pattern id="80851" value="living" metric="1820"/>
<pattern id="80908" value="feeling" metric="1220"/>
<pattern id="81388" value="thing" metric="1014"/>
<pattern id="81505" value="hersland" metric="899"/>
<pattern id="80953" value="kind" metric="855"/>
<pattern id="80860" value="women" metric="795"/>
<pattern id="80872" value="men" metric="775"/>
<pattern id="80907" value="beginning" metric="685"/>
<pattern id="80868" value="inside" metric="660"/>
<pattern id="81101" value="knowing" metric="611"/>
<pattern id="81118" value="completely" metric="594"/>
<pattern id="80810" value="as i was" metric="577"/>
<pattern id="80808" value="i was saying" metric="573"/>
<pattern id="80809" value="as i was|i was saying" metric="568"/>
<pattern id="80804" value="men and women" metric="544"/>
<pattern id="80857" value="children" metric="523"/>
<pattern id="80827" value="history" metric="457"/>
<pattern id="80923" value="things" metric="441"/>
<pattern id="80871" value="young" metric="440"/>
<pattern id="80886" value="good" metric="425"/>
<pattern id="80909" value="thinking" metric="423"/>
<pattern id="80887" value="knew" metric="407"/>
<pattern id="80875" value="family" metric="404"/>
<pattern id="81535" value="loving" metric="395"/>
<pattern id="81265" value="important" metric="392"/>
<pattern id="80991" value="ways" metric="382"/>

http://monk.lis.uiuc.edu:4040/pattern_list_frequency?sort=DESC&collection_id=20&offset=0&limit=100

-Pattern Trend

 /pattern_list_trend?collection_id=20&amp;offset=0&amp;limit=100&amp;trend=sink&amp;sort=undefined HTTP/1.1

<patterns>
<group count="100" offset="0" limit="100" label="Patterns with sinks (100 patterns)">
<pattern id="80857" value="children"/>
<pattern id="81505" value="hersland"/>
<pattern id="80851" value="living"/>
<pattern id="81026" value="mother"/>
<pattern id="80838" value="made"/>
<pattern id="80827" value="history"/>
<pattern id="80868" value="inside"/>
<pattern id="81265" value="important"/>
<pattern id="81207" value="mrs."/>
<pattern id="80813" value="father"/>
<pattern id="80908" value="feeling"/>
</group>
</patterns>


http://monk.lis.uiuc.edu:4040/pattern_list_trend?collection_id=20&offset=0&limit=100&trend=sink&sort=undefined

-Pattern Frequency

/pattern_frequency?pattern_id=80860&collection_id=20 
<chunkMetrics>
<pattern id="80860">
<section id="0" value="111"/>
<section id="1" value="134"/>
<section id="2" value="158"/>
<section id="3" value="101"/>
<section id="4" value="125"/>
<section id="5" value="107"/>
<section id="6" value="46"/>
<section id="7" value="4"/>
<section id="8" value="9"/>
</pattern>
</chunkMetrics>

http://monk.lis.uiuc.edu:4040/pattern_frequency?pattern_id=80860&collection_id=20

-Pattern Index

/pattern_index?pattern_id=80851&collection_id=20


<!--
 each entry is a whitespace-separated list of document ids !
-->
<PatternIndex>

<Docs>-1 3905 3482 3904 3938...</Docs>

<Scores max="0.77066171169281" min="0.0606839060783386">
-1.0 0.77066171169281 0.644050419330597 0.594578444957733 ...
</Scores>
</PatternIndex>

http://monk.lis.uiuc.edu:4040/pattern_index?pattern_id=80851&collection_id=20

-Hilight Pattern


/hilight_pattern?color0=FF0000&pattern_id0=80851&chunk_id=758&collection_id=20&num_pattern=1&n=5
<chunks id="none">

	<p n="1" last="false" id="758">
Once an angry man dragged his father along the ground through his own orchard. "Stop!" cried the groaning old man at last, "Stop! I did not drag my father beyond this tree." 
</p>

	<p n="2" last="false" id="759">
It is hard <font color="#FF0000">living</font> down the tempers we are born with. We all begin well, for in our youth there is nothing we are more intolerant of than our own sins writ large in others and we fight them fiercely in ourselves; but we grow old and we see that these our sins are of all sins the really harmless ones to own, nay that they give a charm to any character, and so our struggle with them dies away. 
</p>
</chunks>


http://monk.lis.uiuc.edu:4040/hilight_pattern?color0=FF0000&pattern_id0=80851&chunk_id=758&collection_id=20&num_pattern=1&n=5

Document generated by Confluence on Apr 19, 2009 15:04