text:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
<root>
  <document>
    <sentences>
      <sentence id="1">
        <tokens>
          <token id="1">
            <word>The</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>0</CharacterOffsetBegin>
            <CharacterOffsetEnd>3</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="2">
            <word>dark</word>
            <lemma>dark</lemma>
            <CharacterOffsetBegin>4</CharacterOffsetBegin>
            <CharacterOffsetEnd>8</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="3">
            <word>roast</word>
            <lemma>roast</lemma>
            <CharacterOffsetBegin>9</CharacterOffsetBegin>
            <CharacterOffsetEnd>14</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="4">
            <word>version</word>
            <lemma>version</lemma>
            <CharacterOffsetBegin>15</CharacterOffsetBegin>
            <CharacterOffsetEnd>22</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="5">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>23</CharacterOffsetBegin>
            <CharacterOffsetEnd>25</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="6">
            <word>delicious</word>
            <lemma>delicious</lemma>
            <CharacterOffsetBegin>26</CharacterOffsetBegin>
            <CharacterOffsetEnd>35</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="7">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>35</CharacterOffsetBegin>
            <CharacterOffsetEnd>36</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="8">
            <word>and</word>
            <lemma>and</lemma>
            <CharacterOffsetBegin>37</CharacterOffsetBegin>
            <CharacterOffsetEnd>40</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="9">
            <word>I</word>
            <lemma>I</lemma>
            <CharacterOffsetBegin>41</CharacterOffsetBegin>
            <CharacterOffsetEnd>42</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="10">
            <word>'ve</word>
            <lemma>have</lemma>
            <CharacterOffsetBegin>42</CharacterOffsetBegin>
            <CharacterOffsetEnd>45</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="11">
            <word>received</word>
            <lemma>receive</lemma>
            <CharacterOffsetBegin>46</CharacterOffsetBegin>
            <CharacterOffsetEnd>54</CharacterOffsetEnd>
            <POS>VBN</POS>
          </token>
          <token id="12">
            <word>comments</word>
            <lemma>comment</lemma>
            <CharacterOffsetBegin>55</CharacterOffsetBegin>
            <CharacterOffsetEnd>63</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="13">
            <word>from</word>
            <lemma>from</lemma>
            <CharacterOffsetBegin>64</CharacterOffsetBegin>
            <CharacterOffsetEnd>68</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="14">
            <word>friends</word>
            <lemma>friend</lemma>
            <CharacterOffsetBegin>69</CharacterOffsetBegin>
            <CharacterOffsetEnd>76</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="15">
            <word>as</word>
            <lemma>as</lemma>
            <CharacterOffsetBegin>77</CharacterOffsetBegin>
            <CharacterOffsetEnd>79</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="16">
            <word>well</word>
            <lemma>well</lemma>
            <CharacterOffsetBegin>80</CharacterOffsetBegin>
            <CharacterOffsetEnd>84</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="17">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>84</CharacterOffsetBegin>
            <CharacterOffsetEnd>85</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (S (NP (DT The) (JJ dark) (NN roast) (NN version)) (VP (VBZ is) (ADJP (JJ delicious)))) (, ,) (CC and) (S (NP (PRP I)) (VP (VBP 've) (VP (VBN received) (NP (NP (NNS comments)) (PP (IN from) (NP (NNS friends)))) (ADVP (RB as) (RB well))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">delicious</dependent>
          </dep>
          <dep type="det">
            <governor idx="4">version</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="4">version</governor>
            <dependent idx="2">dark</dependent>
          </dep>
          <dep type="nn">
            <governor idx="4">version</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">delicious</governor>
            <dependent idx="4">version</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">delicious</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="cc">
            <governor idx="6">delicious</governor>
            <dependent idx="8">and</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="11">received</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="aux">
            <governor idx="11">received</governor>
            <dependent idx="10">'ve</dependent>
          </dep>
          <dep type="conj">
            <governor idx="6">delicious</governor>
            <dependent idx="11">received</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">received</governor>
            <dependent idx="12">comments</dependent>
          </dep>
          <dep type="prep">
            <governor idx="12">comments</governor>
            <dependent idx="13">from</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="13">from</governor>
            <dependent idx="14">friends</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="16">well</governor>
            <dependent idx="15">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="11">received</governor>
            <dependent idx="16">well</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">delicious</dependent>
          </dep>
          <dep type="det">
            <governor idx="4">version</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="4">version</governor>
            <dependent idx="2">dark</dependent>
          </dep>
          <dep type="nn">
            <governor idx="4">version</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">delicious</governor>
            <dependent idx="4">version</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">delicious</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="11">received</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="aux">
            <governor idx="11">received</governor>
            <dependent idx="10">'ve</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="6">delicious</governor>
            <dependent idx="11">received</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">received</governor>
            <dependent idx="12">comments</dependent>
          </dep>
          <dep type="prep_from">
            <governor idx="12">comments</governor>
            <dependent idx="14">friends</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="16">well</governor>
            <dependent idx="15">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="11">received</governor>
            <dependent idx="16">well</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">delicious</dependent>
          </dep>
          <dep type="det">
            <governor idx="4">version</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="4">version</governor>
            <dependent idx="2">dark</dependent>
          </dep>
          <dep type="nn">
            <governor idx="4">version</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">delicious</governor>
            <dependent idx="4">version</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">delicious</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="11">received</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="aux">
            <governor idx="11">received</governor>
            <dependent idx="10">'ve</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="6">delicious</governor>
            <dependent idx="11">received</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">received</governor>
            <dependent idx="12">comments</dependent>
          </dep>
          <dep type="prep_from">
            <governor idx="12">comments</governor>
            <dependent idx="14">friends</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="16">well</governor>
            <dependent idx="15">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="11">received</governor>
            <dependent idx="16">well</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="2">
        <tokens>
          <token id="1">
            <word>Full</word>
            <lemma>full</lemma>
            <CharacterOffsetBegin>87</CharacterOffsetBegin>
            <CharacterOffsetEnd>91</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="2">
            <word>flavor</word>
            <lemma>flavor</lemma>
            <CharacterOffsetBegin>92</CharacterOffsetBegin>
            <CharacterOffsetEnd>98</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="3">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>98</CharacterOffsetBegin>
            <CharacterOffsetEnd>99</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="4">
            <word>delicious</word>
            <lemma>delicious</lemma>
            <CharacterOffsetBegin>100</CharacterOffsetBegin>
            <CharacterOffsetEnd>109</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="5">
            <word>in</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>110</CharacterOffsetBegin>
            <CharacterOffsetEnd>112</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="6">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>113</CharacterOffsetBegin>
            <CharacterOffsetEnd>116</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="7">
            <word>morning</word>
            <lemma>morning</lemma>
            <CharacterOffsetBegin>117</CharacterOffsetBegin>
            <CharacterOffsetEnd>124</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="8">
            <word>without</word>
            <lemma>without</lemma>
            <CharacterOffsetBegin>125</CharacterOffsetBegin>
            <CharacterOffsetEnd>132</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="9">
            <word>half</word>
            <lemma>half</lemma>
            <CharacterOffsetBegin>133</CharacterOffsetBegin>
            <CharacterOffsetEnd>137</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="10">
            <word>and</word>
            <lemma>and</lemma>
            <CharacterOffsetBegin>138</CharacterOffsetBegin>
            <CharacterOffsetEnd>141</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="11">
            <word>half</word>
            <lemma>half</lemma>
            <CharacterOffsetBegin>142</CharacterOffsetBegin>
            <CharacterOffsetEnd>146</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="12">
            <word>-LRB-</word>
            <lemma>-lrb-</lemma>
            <CharacterOffsetBegin>147</CharacterOffsetBegin>
            <CharacterOffsetEnd>148</CharacterOffsetEnd>
            <POS>-LRB-</POS>
          </token>
          <token id="13">
            <word>and</word>
            <lemma>and</lemma>
            <CharacterOffsetBegin>148</CharacterOffsetBegin>
            <CharacterOffsetEnd>151</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="14">
            <word>that</word>
            <lemma>that</lemma>
            <CharacterOffsetBegin>152</CharacterOffsetBegin>
            <CharacterOffsetEnd>156</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="15">
            <word>'s</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>156</CharacterOffsetBegin>
            <CharacterOffsetEnd>158</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="16">
            <word>saying</word>
            <lemma>say</lemma>
            <CharacterOffsetBegin>159</CharacterOffsetBegin>
            <CharacterOffsetEnd>165</CharacterOffsetEnd>
            <POS>VBG</POS>
          </token>
          <token id="17">
            <word>a</word>
            <lemma>a</lemma>
            <CharacterOffsetBegin>166</CharacterOffsetBegin>
            <CharacterOffsetEnd>167</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="18">
            <word>lot</word>
            <lemma>lot</lemma>
            <CharacterOffsetBegin>168</CharacterOffsetBegin>
            <CharacterOffsetEnd>171</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="19">
            <word>-RRB-</word>
            <lemma>-rrb-</lemma>
            <CharacterOffsetBegin>171</CharacterOffsetBegin>
            <CharacterOffsetEnd>172</CharacterOffsetEnd>
            <POS>-RRB-</POS>
          </token>
          <token id="20">
            <word>!</word>
            <lemma>!</lemma>
            <CharacterOffsetBegin>172</CharacterOffsetBegin>
            <CharacterOffsetEnd>173</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (FRAG (NP (NP (JJ Full) (NN flavor)) (, ,) (ADJP (JJ delicious) (PP (IN in) (NP (DT the) (NN morning))))) (PP (IN without) (NP (NP (NN half) (CC and) (NN half)) (PRN (-LRB- -LRB-) (CC and) (S (NP (DT that)) (VP (VBZ 's) (VP (VBG saying) (NP (DT a) (NN lot))))) (-RRB- -RRB-))) (. !)))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="2">flavor</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="1">Full</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="4">delicious</dependent>
          </dep>
          <dep type="prep">
            <governor idx="4">delicious</governor>
            <dependent idx="5">in</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">morning</governor>
            <dependent idx="6">the</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="5">in</governor>
            <dependent idx="7">morning</dependent>
          </dep>
          <dep type="prep">
            <governor idx="2">flavor</governor>
            <dependent idx="8">without</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="8">without</governor>
            <dependent idx="9">half</dependent>
          </dep>
          <dep type="cc">
            <governor idx="9">half</governor>
            <dependent idx="10">and</dependent>
          </dep>
          <dep type="conj">
            <governor idx="9">half</governor>
            <dependent idx="11">half</dependent>
          </dep>
          <dep type="cc">
            <governor idx="16">saying</governor>
            <dependent idx="13">and</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">saying</governor>
            <dependent idx="14">that</dependent>
          </dep>
          <dep type="aux">
            <governor idx="16">saying</governor>
            <dependent idx="15">'s</dependent>
          </dep>
          <dep type="dep">
            <governor idx="9">half</governor>
            <dependent idx="16">saying</dependent>
          </dep>
          <dep type="det">
            <governor idx="18">lot</governor>
            <dependent idx="17">a</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">saying</governor>
            <dependent idx="18">lot</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="2">flavor</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="1">Full</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="4">delicious</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">morning</governor>
            <dependent idx="6">the</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="4">delicious</governor>
            <dependent idx="7">morning</dependent>
          </dep>
          <dep type="prep_without">
            <governor idx="2">flavor</governor>
            <dependent idx="9">half</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="9">half</governor>
            <dependent idx="11">half</dependent>
          </dep>
          <dep type="cc">
            <governor idx="16">saying</governor>
            <dependent idx="13">and</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">saying</governor>
            <dependent idx="14">that</dependent>
          </dep>
          <dep type="aux">
            <governor idx="16">saying</governor>
            <dependent idx="15">'s</dependent>
          </dep>
          <dep type="dep">
            <governor idx="9">half</governor>
            <dependent idx="16">saying</dependent>
          </dep>
          <dep type="det">
            <governor idx="18">lot</governor>
            <dependent idx="17">a</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">saying</governor>
            <dependent idx="18">lot</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="2">flavor</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="1">Full</dependent>
          </dep>
          <dep type="amod">
            <governor idx="2">flavor</governor>
            <dependent idx="4">delicious</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">morning</governor>
            <dependent idx="6">the</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="4">delicious</governor>
            <dependent idx="7">morning</dependent>
          </dep>
          <dep type="prep_without">
            <governor idx="2">flavor</governor>
            <dependent idx="9">half</dependent>
          </dep>
          <dep type="prep_without">
            <governor idx="2">flavor</governor>
            <dependent idx="11">half</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="9">half</governor>
            <dependent idx="11">half</dependent>
          </dep>
          <dep type="cc">
            <governor idx="16">saying</governor>
            <dependent idx="13">and</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="16">saying</governor>
            <dependent idx="14">that</dependent>
          </dep>
          <dep type="aux">
            <governor idx="16">saying</governor>
            <dependent idx="15">'s</dependent>
          </dep>
          <dep type="dep">
            <governor idx="9">half</governor>
            <dependent idx="16">saying</dependent>
          </dep>
          <dep type="det">
            <governor idx="18">lot</governor>
            <dependent idx="17">a</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="16">saying</governor>
            <dependent idx="18">lot</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="3">
        <tokens>
          <token id="1">
            <word>For</word>
            <lemma>for</lemma>
            <CharacterOffsetBegin>175</CharacterOffsetBegin>
            <CharacterOffsetEnd>178</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="2">
            <word>those</word>
            <lemma>those</lemma>
            <CharacterOffsetBegin>179</CharacterOffsetBegin>
            <CharacterOffsetEnd>184</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="3">
            <word>who</word>
            <lemma>who</lemma>
            <CharacterOffsetBegin>185</CharacterOffsetBegin>
            <CharacterOffsetEnd>188</CharacterOffsetEnd>
            <POS>WP</POS>
          </token>
          <token id="4">
            <word>said</word>
            <lemma>say</lemma>
            <CharacterOffsetBegin>189</CharacterOffsetBegin>
            <CharacterOffsetEnd>193</CharacterOffsetEnd>
            <POS>VBD</POS>
          </token>
          <token id="5">
            <word>it</word>
            <lemma>it</lemma>
            <CharacterOffsetBegin>194</CharacterOffsetBegin>
            <CharacterOffsetEnd>196</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="6">
            <word>was</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>197</CharacterOffsetBegin>
            <CharacterOffsetEnd>200</CharacterOffsetEnd>
            <POS>VBD</POS>
          </token>
          <token id="7">
            <word>weak</word>
            <lemma>weak</lemma>
            <CharacterOffsetBegin>201</CharacterOffsetBegin>
            <CharacterOffsetEnd>205</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="8">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>205</CharacterOffsetBegin>
            <CharacterOffsetEnd>206</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="9">
            <word>I</word>
            <lemma>I</lemma>
            <CharacterOffsetBegin>207</CharacterOffsetBegin>
            <CharacterOffsetEnd>208</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="10">
            <word>have</word>
            <lemma>have</lemma>
            <CharacterOffsetBegin>209</CharacterOffsetBegin>
            <CharacterOffsetEnd>213</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="11">
            <word>one</word>
            <lemma>one</lemma>
            <CharacterOffsetBegin>214</CharacterOffsetBegin>
            <CharacterOffsetEnd>217</CharacterOffsetEnd>
            <POS>CD</POS>
          </token>
          <token id="12">
            <word>suggestion</word>
            <lemma>suggestion</lemma>
            <CharacterOffsetBegin>218</CharacterOffsetBegin>
            <CharacterOffsetEnd>228</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="13">
            <word>:</word>
            <lemma>:</lemma>
            <CharacterOffsetBegin>228</CharacterOffsetBegin>
            <CharacterOffsetEnd>229</CharacterOffsetEnd>
            <POS>:</POS>
          </token>
          <token id="14">
            <word>you</word>
            <lemma>you</lemma>
            <CharacterOffsetBegin>230</CharacterOffsetBegin>
            <CharacterOffsetEnd>233</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="15">
            <word>need</word>
            <lemma>need</lemma>
            <CharacterOffsetBegin>234</CharacterOffsetBegin>
            <CharacterOffsetEnd>238</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="16">
            <word>to</word>
            <lemma>to</lemma>
            <CharacterOffsetBegin>239</CharacterOffsetBegin>
            <CharacterOffsetEnd>241</CharacterOffsetEnd>
            <POS>TO</POS>
          </token>
          <token id="17">
            <word>add</word>
            <lemma>add</lemma>
            <CharacterOffsetBegin>242</CharacterOffsetBegin>
            <CharacterOffsetEnd>245</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="18">
            <word>more</word>
            <lemma>more</lemma>
            <CharacterOffsetBegin>246</CharacterOffsetBegin>
            <CharacterOffsetEnd>250</CharacterOffsetEnd>
            <POS>JJR</POS>
          </token>
          <token id="19">
            <word>coffee</word>
            <lemma>coffee</lemma>
            <CharacterOffsetBegin>251</CharacterOffsetBegin>
            <CharacterOffsetEnd>257</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="20">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>257</CharacterOffsetBegin>
            <CharacterOffsetEnd>258</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (S (PP (IN For) (NP (NP (DT those)) (SBAR (WHNP (WP who)) (S (VP (VBD said) (SBAR (S (NP (PRP it)) (VP (VBD was) (ADJP (JJ weak)))))))))) (, ,) (NP (PRP I)) (VP (VBP have) (NP (CD one) (NN suggestion)))) (: :) (S (NP (PRP you)) (VP (VBP need) (S (VP (TO to) (VP (VB add) (NP (JJR more) (NN coffee))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="10">have</dependent>
          </dep>
          <dep type="prep">
            <governor idx="10">have</governor>
            <dependent idx="1">For</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="1">For</governor>
            <dependent idx="2">those</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">said</governor>
            <dependent idx="3">who</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="2">those</governor>
            <dependent idx="4">said</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">weak</governor>
            <dependent idx="5">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">weak</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">said</governor>
            <dependent idx="7">weak</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">have</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="num">
            <governor idx="12">suggestion</governor>
            <dependent idx="11">one</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">have</governor>
            <dependent idx="12">suggestion</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="15">need</governor>
            <dependent idx="14">you</dependent>
          </dep>
          <dep type="parataxis">
            <governor idx="10">have</governor>
            <dependent idx="15">need</dependent>
          </dep>
          <dep type="aux">
            <governor idx="17">add</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="xcomp">
            <governor idx="15">need</governor>
            <dependent idx="17">add</dependent>
          </dep>
          <dep type="amod">
            <governor idx="19">coffee</governor>
            <dependent idx="18">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="17">add</governor>
            <dependent idx="19">coffee</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="10">have</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="10">have</governor>
            <dependent idx="2">those</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">said</governor>
            <dependent idx="3">who</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="2">those</governor>
            <dependent idx="4">said</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">weak</governor>
            <dependent idx="5">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">weak</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">said</governor>
            <dependent idx="7">weak</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">have</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="num">
            <governor idx="12">suggestion</governor>
            <dependent idx="11">one</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">have</governor>
            <dependent idx="12">suggestion</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="15">need</governor>
            <dependent idx="14">you</dependent>
          </dep>
          <dep type="parataxis">
            <governor idx="10">have</governor>
            <dependent idx="15">need</dependent>
          </dep>
          <dep type="aux">
            <governor idx="17">add</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="xcomp">
            <governor idx="15">need</governor>
            <dependent idx="17">add</dependent>
          </dep>
          <dep type="amod">
            <governor idx="19">coffee</governor>
            <dependent idx="18">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="17">add</governor>
            <dependent idx="19">coffee</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="10">have</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="10">have</governor>
            <dependent idx="2">those</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">said</governor>
            <dependent idx="3">who</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="2">those</governor>
            <dependent idx="4">said</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">weak</governor>
            <dependent idx="5">it</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">weak</governor>
            <dependent idx="6">was</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="4">said</governor>
            <dependent idx="7">weak</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">have</governor>
            <dependent idx="9">I</dependent>
          </dep>
          <dep type="num">
            <governor idx="12">suggestion</governor>
            <dependent idx="11">one</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">have</governor>
            <dependent idx="12">suggestion</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="15">need</governor>
            <dependent idx="14">you</dependent>
          </dep>
          <dep type="parataxis">
            <governor idx="10">have</governor>
            <dependent idx="15">need</dependent>
          </dep>
          <dep type="aux">
            <governor idx="17">add</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="xcomp">
            <governor idx="15">need</governor>
            <dependent idx="17">add</dependent>
          </dep>
          <dep type="amod">
            <governor idx="19">coffee</governor>
            <dependent idx="18">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="17">add</governor>
            <dependent idx="19">coffee</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="4">
        <tokens>
          <token id="1">
            <word>In</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>260</CharacterOffsetBegin>
            <CharacterOffsetEnd>262</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="2">
            <word>my</word>
            <lemma>my</lemma>
            <CharacterOffsetBegin>263</CharacterOffsetBegin>
            <CharacterOffsetEnd>265</CharacterOffsetEnd>
            <POS>PRP$</POS>
          </token>
          <token id="3">
            <word>Cuisinart</word>
            <lemma>Cuisinart</lemma>
            <CharacterOffsetBegin>266</CharacterOffsetBegin>
            <CharacterOffsetEnd>275</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="4">
            <word>coffee</word>
            <lemma>coffee</lemma>
            <CharacterOffsetBegin>276</CharacterOffsetBegin>
            <CharacterOffsetEnd>282</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="5">
            <word>maker</word>
            <lemma>maker</lemma>
            <CharacterOffsetBegin>283</CharacterOffsetBegin>
            <CharacterOffsetEnd>288</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="6">
            <word>-LRB-</word>
            <lemma>-lrb-</lemma>
            <CharacterOffsetBegin>289</CharacterOffsetBegin>
            <CharacterOffsetEnd>290</CharacterOffsetEnd>
            <POS>-LRB-</POS>
          </token>
          <token id="7">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>290</CharacterOffsetBegin>
            <CharacterOffsetEnd>293</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="8">
            <word>model</word>
            <lemma>model</lemma>
            <CharacterOffsetBegin>294</CharacterOffsetBegin>
            <CharacterOffsetEnd>299</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="9">
            <word>that</word>
            <lemma>that</lemma>
            <CharacterOffsetBegin>300</CharacterOffsetBegin>
            <CharacterOffsetEnd>304</CharacterOffsetEnd>
            <POS>WDT</POS>
          </token>
          <token id="10">
            <word>has</word>
            <lemma>have</lemma>
            <CharacterOffsetBegin>305</CharacterOffsetBegin>
            <CharacterOffsetEnd>308</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="11">
            <word>a</word>
            <lemma>a</lemma>
            <CharacterOffsetBegin>309</CharacterOffsetBegin>
            <CharacterOffsetEnd>310</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="12">
            <word>`</word>
            <lemma>`</lemma>
            <CharacterOffsetBegin>311</CharacterOffsetBegin>
            <CharacterOffsetEnd>312</CharacterOffsetEnd>
            <POS>``</POS>
          </token>
          <token id="13">
            <word>step</word>
            <lemma>step</lemma>
            <CharacterOffsetBegin>312</CharacterOffsetBegin>
            <CharacterOffsetEnd>316</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="14">
            <word>'</word>
            <lemma>'</lemma>
            <CharacterOffsetBegin>316</CharacterOffsetBegin>
            <CharacterOffsetEnd>317</CharacterOffsetEnd>
            <POS>''</POS>
          </token>
          <token id="15">
            <word>indicator</word>
            <lemma>indicator</lemma>
            <CharacterOffsetBegin>318</CharacterOffsetBegin>
            <CharacterOffsetEnd>327</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="16">
            <word>on</word>
            <lemma>on</lemma>
            <CharacterOffsetBegin>328</CharacterOffsetBegin>
            <CharacterOffsetEnd>330</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="17">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>331</CharacterOffsetBegin>
            <CharacterOffsetEnd>334</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="18">
            <word>right</word>
            <lemma>right</lemma>
            <CharacterOffsetBegin>335</CharacterOffsetBegin>
            <CharacterOffsetEnd>340</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="19">
            <word>hand</word>
            <lemma>hand</lemma>
            <CharacterOffsetBegin>341</CharacterOffsetBegin>
            <CharacterOffsetEnd>345</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="20">
            <word>side</word>
            <lemma>side</lemma>
            <CharacterOffsetBegin>346</CharacterOffsetBegin>
            <CharacterOffsetEnd>350</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="21">
            <word>-RRB-</word>
            <lemma>-rrb-</lemma>
            <CharacterOffsetBegin>350</CharacterOffsetBegin>
            <CharacterOffsetEnd>351</CharacterOffsetEnd>
            <POS>-RRB-</POS>
          </token>
          <token id="22">
            <word>I</word>
            <lemma>I</lemma>
            <CharacterOffsetBegin>352</CharacterOffsetBegin>
            <CharacterOffsetEnd>353</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="23">
            <word>use</word>
            <lemma>use</lemma>
            <CharacterOffsetBegin>354</CharacterOffsetBegin>
            <CharacterOffsetEnd>357</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="24">
            <word>3-1/2</word>
            <lemma>3-1/2</lemma>
            <CharacterOffsetBegin>358</CharacterOffsetBegin>
            <CharacterOffsetEnd>363</CharacterOffsetEnd>
            <POS>CD</POS>
          </token>
          <token id="25">
            <word>scoops</word>
            <lemma>scoop</lemma>
            <CharacterOffsetBegin>364</CharacterOffsetBegin>
            <CharacterOffsetEnd>370</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="26">
            <word>for</word>
            <lemma>for</lemma>
            <CharacterOffsetBegin>371</CharacterOffsetBegin>
            <CharacterOffsetEnd>374</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="27">
            <word>10</word>
            <lemma>10</lemma>
            <CharacterOffsetBegin>375</CharacterOffsetBegin>
            <CharacterOffsetEnd>377</CharacterOffsetEnd>
            <POS>CD</POS>
          </token>
          <token id="28">
            <word>cups</word>
            <lemma>cup</lemma>
            <CharacterOffsetBegin>378</CharacterOffsetBegin>
            <CharacterOffsetEnd>382</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="29">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>382</CharacterOffsetBegin>
            <CharacterOffsetEnd>383</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (PP (IN In) (NP (NP (PRP$ my) (NNP Cuisinart) (NN coffee) (NN maker)) (PRN (-LRB- -LRB-) (NP (NP (DT the) (NN model)) (SBAR (WHNP (WDT that)) (S (VP (VBZ has) (NP (NP (DT a) (`` `) (NN step) ('' ') (NN indicator)) (PP (IN on) (NP (DT the) (JJ right) (NN hand) (NN side)))))))) (-RRB- -RRB-)))) (NP (PRP I)) (VP (VBP use) (SBAR (S (NP (CD 3-1/2)) (VP (VBZ scoops) (PP (IN for) (NP (CD 10) (NNS cups))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="23">use</dependent>
          </dep>
          <dep type="prep">
            <governor idx="23">use</governor>
            <dependent idx="1">In</dependent>
          </dep>
          <dep type="poss">
            <governor idx="5">maker</governor>
            <dependent idx="2">my</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="3">Cuisinart</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="4">coffee</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="1">In</governor>
            <dependent idx="5">maker</dependent>
          </dep>
          <dep type="det">
            <governor idx="8">model</governor>
            <dependent idx="7">the</dependent>
          </dep>
          <dep type="dep">
            <governor idx="5">maker</governor>
            <dependent idx="8">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">has</governor>
            <dependent idx="9">that</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="8">model</governor>
            <dependent idx="10">has</dependent>
          </dep>
          <dep type="det">
            <governor idx="15">indicator</governor>
            <dependent idx="11">a</dependent>
          </dep>
          <dep type="nn">
            <governor idx="15">indicator</governor>
            <dependent idx="13">step</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">has</governor>
            <dependent idx="15">indicator</dependent>
          </dep>
          <dep type="prep">
            <governor idx="15">indicator</governor>
            <dependent idx="16">on</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">side</governor>
            <dependent idx="17">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">side</governor>
            <dependent idx="18">right</dependent>
          </dep>
          <dep type="nn">
            <governor idx="20">side</governor>
            <dependent idx="19">hand</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="16">on</governor>
            <dependent idx="20">side</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="23">use</governor>
            <dependent idx="22">I</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="25">scoops</governor>
            <dependent idx="24">3-1/2</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="23">use</governor>
            <dependent idx="25">scoops</dependent>
          </dep>
          <dep type="prep">
            <governor idx="25">scoops</governor>
            <dependent idx="26">for</dependent>
          </dep>
          <dep type="num">
            <governor idx="28">cups</governor>
            <dependent idx="27">10</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="26">for</governor>
            <dependent idx="28">cups</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="23">use</dependent>
          </dep>
          <dep type="poss">
            <governor idx="5">maker</governor>
            <dependent idx="2">my</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="3">Cuisinart</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="4">coffee</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="23">use</governor>
            <dependent idx="5">maker</dependent>
          </dep>
          <dep type="det">
            <governor idx="8">model</governor>
            <dependent idx="7">the</dependent>
          </dep>
          <dep type="dep">
            <governor idx="5">maker</governor>
            <dependent idx="8">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">has</governor>
            <dependent idx="9">that</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="8">model</governor>
            <dependent idx="10">has</dependent>
          </dep>
          <dep type="det">
            <governor idx="15">indicator</governor>
            <dependent idx="11">a</dependent>
          </dep>
          <dep type="nn">
            <governor idx="15">indicator</governor>
            <dependent idx="13">step</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">has</governor>
            <dependent idx="15">indicator</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">side</governor>
            <dependent idx="17">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">side</governor>
            <dependent idx="18">right</dependent>
          </dep>
          <dep type="nn">
            <governor idx="20">side</governor>
            <dependent idx="19">hand</dependent>
          </dep>
          <dep type="prep_on">
            <governor idx="15">indicator</governor>
            <dependent idx="20">side</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="23">use</governor>
            <dependent idx="22">I</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="25">scoops</governor>
            <dependent idx="24">3-1/2</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="23">use</governor>
            <dependent idx="25">scoops</dependent>
          </dep>
          <dep type="num">
            <governor idx="28">cups</governor>
            <dependent idx="27">10</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="25">scoops</governor>
            <dependent idx="28">cups</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="23">use</dependent>
          </dep>
          <dep type="poss">
            <governor idx="5">maker</governor>
            <dependent idx="2">my</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="3">Cuisinart</dependent>
          </dep>
          <dep type="nn">
            <governor idx="5">maker</governor>
            <dependent idx="4">coffee</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="23">use</governor>
            <dependent idx="5">maker</dependent>
          </dep>
          <dep type="det">
            <governor idx="8">model</governor>
            <dependent idx="7">the</dependent>
          </dep>
          <dep type="dep">
            <governor idx="5">maker</governor>
            <dependent idx="8">model</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="10">has</governor>
            <dependent idx="9">that</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="8">model</governor>
            <dependent idx="10">has</dependent>
          </dep>
          <dep type="det">
            <governor idx="15">indicator</governor>
            <dependent idx="11">a</dependent>
          </dep>
          <dep type="nn">
            <governor idx="15">indicator</governor>
            <dependent idx="13">step</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="10">has</governor>
            <dependent idx="15">indicator</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">side</governor>
            <dependent idx="17">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">side</governor>
            <dependent idx="18">right</dependent>
          </dep>
          <dep type="nn">
            <governor idx="20">side</governor>
            <dependent idx="19">hand</dependent>
          </dep>
          <dep type="prep_on">
            <governor idx="15">indicator</governor>
            <dependent idx="20">side</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="23">use</governor>
            <dependent idx="22">I</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="25">scoops</governor>
            <dependent idx="24">3-1/2</dependent>
          </dep>
          <dep type="ccomp">
            <governor idx="23">use</governor>
            <dependent idx="25">scoops</dependent>
          </dep>
          <dep type="num">
            <governor idx="28">cups</governor>
            <dependent idx="27">10</dependent>
          </dep>
          <dep type="prep_for">
            <governor idx="25">scoops</governor>
            <dependent idx="28">cups</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="5">
        <tokens>
          <token id="1">
            <word>Super</word>
            <lemma>Super</lemma>
            <CharacterOffsetBegin>384</CharacterOffsetBegin>
            <CharacterOffsetEnd>389</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="2">
            <word>saver</word>
            <lemma>saver</lemma>
            <CharacterOffsetBegin>390</CharacterOffsetBegin>
            <CharacterOffsetEnd>395</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="3">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>396</CharacterOffsetBegin>
            <CharacterOffsetEnd>398</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="4">
            <word>a</word>
            <lemma>a</lemma>
            <CharacterOffsetBegin>399</CharacterOffsetBegin>
            <CharacterOffsetEnd>400</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="5">
            <word>great</word>
            <lemma>great</lemma>
            <CharacterOffsetBegin>401</CharacterOffsetBegin>
            <CharacterOffsetEnd>406</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="6">
            <word>way</word>
            <lemma>way</lemma>
            <CharacterOffsetBegin>407</CharacterOffsetBegin>
            <CharacterOffsetEnd>410</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="7">
            <word>to</word>
            <lemma>to</lemma>
            <CharacterOffsetBegin>411</CharacterOffsetBegin>
            <CharacterOffsetEnd>413</CharacterOffsetEnd>
            <POS>TO</POS>
          </token>
          <token id="8">
            <word>get</word>
            <lemma>get</lemma>
            <CharacterOffsetBegin>414</CharacterOffsetBegin>
            <CharacterOffsetEnd>417</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="9">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>418</CharacterOffsetBegin>
            <CharacterOffsetEnd>421</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="10">
            <word>coffee</word>
            <lemma>coffee</lemma>
            <CharacterOffsetBegin>422</CharacterOffsetBegin>
            <CharacterOffsetEnd>428</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="11">
            <word>as</word>
            <lemma>as</lemma>
            <CharacterOffsetBegin>429</CharacterOffsetBegin>
            <CharacterOffsetEnd>431</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="12">
            <word>well</word>
            <lemma>well</lemma>
            <CharacterOffsetBegin>432</CharacterOffsetBegin>
            <CharacterOffsetEnd>436</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="13">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>436</CharacterOffsetBegin>
            <CharacterOffsetEnd>437</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (NNP Super) (NN saver)) (VP (VBZ is) (NP (DT a) (JJ great) (NN way) (S (VP (TO to) (VP (VB get) (NP (DT the) (NN coffee)) (ADVP (RB as) (RB well))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">way</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">saver</governor>
            <dependent idx="1">Super</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">way</governor>
            <dependent idx="2">saver</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">way</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">way</governor>
            <dependent idx="4">a</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">way</governor>
            <dependent idx="5">great</dependent>
          </dep>
          <dep type="aux">
            <governor idx="8">get</governor>
            <dependent idx="7">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="6">way</governor>
            <dependent idx="8">get</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">coffee</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">get</governor>
            <dependent idx="10">coffee</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="12">well</governor>
            <dependent idx="11">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">get</governor>
            <dependent idx="12">well</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">way</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">saver</governor>
            <dependent idx="1">Super</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">way</governor>
            <dependent idx="2">saver</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">way</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">way</governor>
            <dependent idx="4">a</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">way</governor>
            <dependent idx="5">great</dependent>
          </dep>
          <dep type="aux">
            <governor idx="8">get</governor>
            <dependent idx="7">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="6">way</governor>
            <dependent idx="8">get</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">coffee</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">get</governor>
            <dependent idx="10">coffee</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="12">well</governor>
            <dependent idx="11">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">get</governor>
            <dependent idx="12">well</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">way</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">saver</governor>
            <dependent idx="1">Super</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">way</governor>
            <dependent idx="2">saver</dependent>
          </dep>
          <dep type="cop">
            <governor idx="6">way</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="det">
            <governor idx="6">way</governor>
            <dependent idx="4">a</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">way</governor>
            <dependent idx="5">great</dependent>
          </dep>
          <dep type="aux">
            <governor idx="8">get</governor>
            <dependent idx="7">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="6">way</governor>
            <dependent idx="8">get</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">coffee</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="8">get</governor>
            <dependent idx="10">coffee</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="12">well</governor>
            <dependent idx="11">as</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">get</governor>
            <dependent idx="12">well</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="6">
        <tokens>
          <token id="1">
            <word>The</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>438</CharacterOffsetBegin>
            <CharacterOffsetEnd>441</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="2">
            <word>light</word>
            <lemma>light</lemma>
            <CharacterOffsetBegin>442</CharacterOffsetBegin>
            <CharacterOffsetEnd>447</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="3">
            <word>roast</word>
            <lemma>roast</lemma>
            <CharacterOffsetBegin>448</CharacterOffsetBegin>
            <CharacterOffsetEnd>453</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="4">
            <word>blend</word>
            <lemma>blend</lemma>
            <CharacterOffsetBegin>454</CharacterOffsetBegin>
            <CharacterOffsetEnd>459</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="5">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>460</CharacterOffsetBegin>
            <CharacterOffsetEnd>462</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="6">
            <word>almost</word>
            <lemma>almost</lemma>
            <CharacterOffsetBegin>463</CharacterOffsetBegin>
            <CharacterOffsetEnd>469</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="7">
            <word>as</word>
            <lemma>as</lemma>
            <CharacterOffsetBegin>470</CharacterOffsetBegin>
            <CharacterOffsetEnd>472</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="8">
            <word>good</word>
            <lemma>good</lemma>
            <CharacterOffsetBegin>473</CharacterOffsetBegin>
            <CharacterOffsetEnd>477</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="9">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>477</CharacterOffsetBegin>
            <CharacterOffsetEnd>478</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="10">
            <word>but</word>
            <lemma>but</lemma>
            <CharacterOffsetBegin>479</CharacterOffsetBegin>
            <CharacterOffsetEnd>482</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="11">
            <word>needs</word>
            <lemma>need</lemma>
            <CharacterOffsetBegin>483</CharacterOffsetBegin>
            <CharacterOffsetEnd>488</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="12">
            <word>more</word>
            <lemma>more</lemma>
            <CharacterOffsetBegin>489</CharacterOffsetBegin>
            <CharacterOffsetEnd>493</CharacterOffsetEnd>
            <POS>RBR</POS>
          </token>
          <token id="13">
            <word>flavor</word>
            <lemma>flavor</lemma>
            <CharacterOffsetBegin>494</CharacterOffsetBegin>
            <CharacterOffsetEnd>500</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="14">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>500</CharacterOffsetBegin>
            <CharacterOffsetEnd>501</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (DT The) (JJ light) (NN roast) (S (VP (VB blend)))) (VP (VP (VBZ is) (ADJP (RB almost) (RB as) (JJ good))) (, ,) (CC but) (VP (VBZ needs) (NP (ADVP (RBR more)) (NN flavor)))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="8">good</dependent>
          </dep>
          <dep type="det">
            <governor idx="3">roast</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">roast</governor>
            <dependent idx="2">light</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">good</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="dep">
            <governor idx="3">roast</governor>
            <dependent idx="4">blend</dependent>
          </dep>
          <dep type="cop">
            <governor idx="8">good</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="6">almost</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="7">as</dependent>
          </dep>
          <dep type="cc">
            <governor idx="8">good</governor>
            <dependent idx="10">but</dependent>
          </dep>
          <dep type="conj">
            <governor idx="8">good</governor>
            <dependent idx="11">needs</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="13">flavor</governor>
            <dependent idx="12">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">needs</governor>
            <dependent idx="13">flavor</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="8">good</dependent>
          </dep>
          <dep type="det">
            <governor idx="3">roast</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">roast</governor>
            <dependent idx="2">light</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">good</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="dep">
            <governor idx="3">roast</governor>
            <dependent idx="4">blend</dependent>
          </dep>
          <dep type="cop">
            <governor idx="8">good</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="6">almost</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="7">as</dependent>
          </dep>
          <dep type="conj_but">
            <governor idx="8">good</governor>
            <dependent idx="11">needs</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="13">flavor</governor>
            <dependent idx="12">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">needs</governor>
            <dependent idx="13">flavor</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="8">good</dependent>
          </dep>
          <dep type="det">
            <governor idx="3">roast</governor>
            <dependent idx="1">The</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">roast</governor>
            <dependent idx="2">light</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="8">good</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="11">needs</governor>
            <dependent idx="3">roast</dependent>
          </dep>
          <dep type="dep">
            <governor idx="3">roast</governor>
            <dependent idx="4">blend</dependent>
          </dep>
          <dep type="cop">
            <governor idx="8">good</governor>
            <dependent idx="5">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="6">almost</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="8">good</governor>
            <dependent idx="7">as</dependent>
          </dep>
          <dep type="conj_but">
            <governor idx="8">good</governor>
            <dependent idx="11">needs</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="13">flavor</governor>
            <dependent idx="12">more</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="11">needs</governor>
            <dependent idx="13">flavor</dependent>
          </dep>
        </dependencies>
      </sentence>
    </sentences>
  </document>
</root>


text:
/*
 * OBO.h
 *
 *  Created on: 31 Oct 2012
 *      Author: alan
 */

#ifndef OBO_H_
#define OBO_H_

#include <string>
#include <vector>

#include <map>

#include <exception>

#include <boost/shared_ptr.hpp>
//#include <boost/unordered_map.hpp>

#include "OBOTerm.h"

namespace ImzML {

    class OBOFileNotFound : public std::exception {
    private:
        std::string filename;

    public:
        OBOFileNotFound(std::string filename) throw() {
            this->filename = filename;
        }
        ~OBOFileNotFound() throw() {
        }

        virtual const char* what() const throw() {
            return filename.c_str();
        }
    };

	class OBO {
	private:
        typedef std::vector< boost::shared_ptr<OBO> > imports_type;

		std::string formatVersion;
		std::string data;
		std::string savedBy;
		std::string autogeneratedBy;
		std::string defaultNamespace;

		// Taken from the id, before the ':' e.g. IMS, MS, UO, PATO for faster matching of terms
		std::string ns;

        imports_type imports;
		std::vector<std::string> remarks;

		std::map<int , boost::shared_ptr<ImzML::OBOTerm> > terms;

	public:
		OBO();
		OBO(std::string filename);
		virtual ~OBO();

		void parse(std::string filename);

		boost::shared_ptr<ImzML::OBOTerm> getTerm(std::string id);
		boost::shared_ptr<ImzML::OBOTerm> getTerm(std::string ns, int id);

//		float load_factor() { return terms.load_factor(); }

	private:
		void cleanup();
	};

} /* namespace ImzML */
#endif /* OBO_H_ */

redpajama_set_name: RedPajamaGithub


text:
# Feign makes writing java http clients easier

[![Join the chat at https://gitter.im/Netflix/feign](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Netflix/feign?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Feign is a java to http client binder inspired by [Retrofit](https://github.com/square/retrofit), [JAXRS-2.0](https://jax-rs-spec.java.net/nonav/2.0/apidocs/index.html), and [WebSocket](http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html).  Feign's first goal was reducing the complexity of binding [Denominator](https://github.com/Netflix/Denominator) uniformly to http apis regardless of [restfulness](http://www.slideshare.net/adrianfcole/99problems).

### Why Feign and not X?

You can use tools like Jersey and CXF to write java clients for ReST or SOAP services.  You can write your own code on top of http transport libraries like Apache HC.  Feign aims to connect your code to http apis with minimal overhead and code. Via customizable decoders and error handling, you should be able to write to any text-based http api.

### How does Feign work?

Feign works by processing annotations into a templatized request.  Just before sending it off, arguments are applied to these templates in a straightforward fashion.  While this limits Feign to only supporting text-based apis, it dramatically simplified system aspects such as replaying requests.  It is also stupid easy to unit test your conversions knowing this.

### Basics

Usage typically looks like this, an adaptation of the [canonical Retrofit sample](https://github.com/square/retrofit/blob/master/samples/src/main/java/com/example/retrofit/SimpleService.java).

```java
interface GitHub {
  @RequestLine("GET /repos/{owner}/{repo}/contributors")
  List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);
}

static class Contributor {
  String login;
  int contributions;
}

public static void main(String... args) {
  GitHub github = Feign.builder()
                       .decoder(new GsonDecoder())
                       .target(GitHub.class, "https://api.github.com");

  // Fetch and print a list of the contributors to this library.
  List<Contributor> contributors = github.contributors("netflix", "feign");
  for (Contributor contributor : contributors) {
    System.out.println(contributor.login + " (" + contributor.contributions + ")");
  }
}
```

### Customization

Feign has several aspects that can be customized.  For simple cases, you can use `Feign.builder()` to construct an API interface with your custom components.  For example:

```java
interface Bank {
  @RequestLine("POST /account/{id}")
  Account getAccountInfo(@Param("id") String id);
}
...
Bank bank = Feign.builder().decoder(new AccountDecoder()).target(Bank.class, "https://api.examplebank.com");
```

### Multiple Interfaces
Feign can produce multiple api interfaces.  These are defined as `Target<T>` (default `HardCodedTarget<T>`), which allow for dynamic discovery and decoration of requests prior to execution.

For example, the following pattern might decorate each request with the current url and auth token from the identity service.

```java
Feign feign = Feign.builder().build();
CloudDNS cloudDNS = feign.target(new CloudIdentityTarget<CloudDNS>(user, apiKey));
```

### Examples
Feign includes example [GitHub](./example-github) and [Wikipedia](./example-wikipedia) clients. The denominator project can also be scraped for Feign in practice. Particularly, look at its [example daemon](https://github.com/Netflix/denominator/tree/master/example-daemon).

### Integrations
Feign intends to work well within Netflix and other Open Source communities.  Modules are welcome to integrate with your favorite projects!

### Gson
[Gson](./gson) includes an encoder and decoder you can use with a JSON API.

Add `GsonEncoder` and/or `GsonDecoder` to your `Feign.Builder` like so:

```java
GsonCodec codec = new GsonCodec();
GitHub github = Feign.builder()
                     .encoder(new GsonEncoder())
                     .decoder(new GsonDecoder())
                     .target(GitHub.class, "https://api.github.com");
```

### Jackson
[Jackson](./jackson) includes an encoder and decoder you can use with a JSON API.

Add `JacksonEncoder` and/or `JacksonDecoder` to your `Feign.Builder` like so:

```java
GitHub github = Feign.builder()
                     .encoder(new JacksonEncoder())
                     .decoder(new JacksonDecoder())
                     .target(GitHub.class, "https://api.github.com");
```

### Sax
[SaxDecoder](./sax) allows you to decode XML in a way that is compatible with normal JVM and also Android environments.

Here's an example of how to configure Sax response parsing:
```java
api = Feign.builder()
           .decoder(SAXDecoder.builder()
                              .registerContentHandler(UserIdHandler.class)
                              .build())
           .target(Api.class, "https://apihost");
```

### JAXB
[JAXB](./jaxb) includes an encoder and decoder you can use with an XML API.

Add `JAXBEncoder` and/or `JAXBDecoder` to your `Feign.Builder` like so:

```java
api = Feign.builder()
           .encoder(new JAXBEncoder())
           .decoder(new JAXBDecoder())
           .target(Api.class, "https://apihost");
```

### JAX-RS
[JAXRSContract](./jaxrs) overrides annotation processing to instead use standard ones supplied by the JAX-RS specification.  This is currently targeted at the 1.1 spec.

Here's the example above re-written to use JAX-RS:
```java
interface GitHub {
  @GET @Path("/repos/{owner}/{repo}/contributors")
  List<Contributor> contributors(@PathParam("owner") String owner, @PathParam("repo") String repo);
}
```
```java
GitHub github = Feign.builder()
                     .contract(new JAXRSContract())
                     .target(GitHub.class, "https://api.github.com");
```
### OkHttp
[OkHttpClient](./okhttp) directs Feign's http requests to [OkHttp](http://square.github.io/okhttp/), which enables SPDY and better network control.

To use OkHttp with Feign, add the OkHttp module to your classpath. Then, configure Feign to use the OkHttpClient:

```java
GitHub github = Feign.builder()
                     .client(new OkHttpClient())
                     .target(GitHub.class, "https://api.github.com");
```

### Ribbon
[RibbonClient](./ribbon) overrides URL resolution of Feign's client, adding smart routing and resiliency capabilities provided by [Ribbon](https://github.com/Netflix/ribbon).

Integration requires you to pass your ribbon client name as the host part of the url, for example `myAppProd`.
```java
MyService api = Feign.builder().client(RibbonClient.create()).target(MyService.class, "https://myAppProd");

```

### Hystrix
[HystrixFeign](./hystrix) configures circuit breaker support provided by [Hystrix](https://github.com/Netflix/Hystrix).

To use Hystrix with Feign, add the Hystrix module to your classpath. Then use the `HystrixFeign` builder:

```java
MyService api = HystrixFeign.builder().target(MyService.class, "https://myAppProd");

```

### SLF4J
[SLF4JModule](./slf4j) allows directing Feign's logging to [SLF4J](http://www.slf4j.org/), allowing you to easily use a logging backend of your choice (Logback, Log4J, etc.)

To use SLF4J with Feign, add both the SLF4J module and an SLF4J binding of your choice to your classpath.  Then, configure Feign to use the Slf4jLogger:

```java
GitHub github = Feign.builder()
                     .logger(new Slf4jLogger())
                     .target(GitHub.class, "https://api.github.com");
```

### Decoders
`Feign.builder()` allows you to specify additional configuration such as how to decode a response.

If any methods in your interface return types besides `Response`, `String`, `byte[]` or `void`, you'll need to configure a non-default `Decoder`.

Here's how to configure JSON decoding (using the `feign-gson` extension):

```java
GitHub github = Feign.builder()
                     .decoder(new GsonDecoder())
                     .target(GitHub.class, "https://api.github.com");
```

### Encoders
The simplest way to send a request body to a server is to define a `POST` method that has a `String` or `byte[]` parameter without any annotations on it. You will likely need to add a `Content-Type` header.

```java
interface LoginClient {
  @RequestLine("POST /")
  @Headers("Content-Type: application/json")
  void login(String content);
}
...
client.login("{\"user_name\": \"denominator\", \"password\": \"secret\"}");
```

By configuring an `Encoder`, you can send a type-safe request body. Here's an example using the `feign-gson` extension:

```java
static class Credentials {
  final String user_name;
  final String password;

  Credentials(String user_name, String password) {
    this.user_name = user_name;
    this.password = password;
  }
}

interface LoginClient {
  @RequestLine("POST /")
  void login(Credentials creds);
}
...
LoginClient client = Feign.builder()
                          .encoder(new GsonEncoder())
                          .target(LoginClient.class, "https://foo.com");

client.login(new Credentials("denominator", "secret"));
```

### @Body templates
The `@Body` annotation indicates a template to expand using parameters annotated with `@Param`. You will likely need to add a `Content-Type` header.

```java
interface LoginClient {

  @RequestLine("POST /")
  @Headers("Content-Type: application/xml")
  @Body("<login \"user_name\"=\"{user_name}\" \"password\"=\"{password}\"/>")
  void xml(@Param("user_name") String user, @Param("password") String password);

  @RequestLine("POST /")
  @Headers("Content-Type: application/json")
  // json curly braces must be escaped!
  @Body("%7B\"user_name\": \"{user_name}\", \"password\": \"{password}\"%7D")
  void json(@Param("user_name") String user, @Param("password") String password);
}
...
client.xml("denominator", "secret"); // <login "user_name"="denominator" "password"="secret"/>
client.json("denominator", "secret"); // {"user_name": "denominator", "password": "secret"}
```

### Headers
Feign supports settings headers on requests either as part of the api or as part of the client
dending on the use case.

#### Set headers using apis
In cases where specific interfaces or calls should always have certain header values set, it
makes sense to define headers as part of the api.

Static headers can be set on an api interface or method using the `@Headers` annotation.

```java
@Headers("Accept: application/json")
interface BaseApi<V> {
  @Headers("Content-Type: application/json")
  @RequestLine("PUT /api/{key}")
  void put(@Param("key") String, V value);
}
```

Methods can specify dynamic content for static headers using using variable expansion in `@Headers`.

```java
 @RequestLine("POST /")
 @Headers("X-Ping: {token}")
 void post(@Param("token") String token);
```

In cases where both the header field keys and values are dynamic and the range of possible keys cannot
be known ahead of time and may vary between different method calls in the same api/client (e.g. custom
metadata header fields such as "x-amz-meta-\*" or "x-goog-meta-\*"), a Map parameter can be annotated
with `HeaderMap` to construct a query that uses the contents of the map as its header parameters.

```java
 @RequestLine("POST /")
 void post(@HeaderMap Map<String, Object> headerMap);
```

These approaches specify header entries as part of the api and do not require any customizations
when building the Feign client.

#### Setting headers per target
In cases where headers should differ for the same api based on different endpoints or where per-request
customization is required, headers can be set as part of the client using a `RequestInterceptor` or a
`Target`.

For an example of setting headers using a `RequestInterceptor`, see the `Request Interceptors` section.

Headers can be set as part of a custom `Target`.

```java
  static class DynamicAuthTokenTarget<T> implements Target<T> {
    public DynamicAuthTokenTarget(Class<T> clazz,
                                  UrlAndTokenProvider provider,
                                  ThreadLocal<String> requestIdProvider);
    ...
    @Override
    public Request apply(RequestTemplate input) {
      TokenIdAndPublicURL urlAndToken = provider.get();
      if (input.url().indexOf("http") != 0) {
        input.insert(0, urlAndToken.publicURL);
      }
      input.header("X-Auth-Token", urlAndToken.tokenId);
      input.header("X-Request-ID", requestIdProvider.get());

      return input.request();
    }
  }
  ...
  Bank bank = Feign.builder()
          .target(new DynamicAuthTokenTarget(Bank.class, provider, requestIdProvider));
```

These approaches depend on the custom `RequestInterceptor` or `Target` being set on the Feign
client when it is built and can be used as a way to set headers on all api calls on a per-client
basis. This can be useful for doing things such as setting an authentication token in the header
of all api requests on a per-client basis. The methods are run when the api call is made on the
thread that invokes the api call, which allows the headers to be set dynamically at call time and
in a context-specific manner -- for example, thread-local storage can be used to set different
header values depending on the invoking thread, which can be useful for things such as setting
thread-specific trace identifiers for requests.

### Advanced usage

#### Base Apis
In many cases, apis for a service follow the same conventions. Feign supports this pattern via single-inheritance interfaces.

Consider the example:
```java
interface BaseAPI {
  @RequestLine("GET /health")
  String health();

  @RequestLine("GET /all")
  List<Entity> all();
}
```

You can define and target a specific api, inheriting the base methods.
```java
interface CustomAPI extends BaseAPI {
  @RequestLine("GET /custom")
  String custom();
}
```

In many cases, resource representations are also consistent. For this reason, type parameters are supported on the base api interface.

```java
@Headers("Accept: application/json")
interface BaseApi<V> {

  @RequestLine("GET /api/{key}")
  V get(@Param("key") String);

  @RequestLine("GET /api")
  List<V> list();

  @Headers("Content-Type: application/json")
  @RequestLine("PUT /api/{key}")
  void put(@Param("key") String, V value);
}

interface FooApi extends BaseApi<Foo> { }

interface BarApi extends BaseApi<Bar> { }
```

#### Logging
You can log the http messages going to and from the target by setting up a `Logger`.  Here's the easiest way to do that:
```java
GitHub github = Feign.builder()
                     .decoder(new GsonDecoder())
                     .logger(new Logger.JavaLogger().appendToFile("logs/http.log"))
                     .logLevel(Logger.Level.FULL)
                     .target(GitHub.class, "https://api.github.com");
```

The SLF4JLogger (see above) may also be of interest.

#### Request Interceptors
When you need to change all requests, regardless of their target, you'll want to configure a `RequestInterceptor`.
For example, if you are acting as an intermediary, you might want to propagate the `X-Forwarded-For` header.

```java
static class ForwardedForInterceptor implements RequestInterceptor {
  @Override public void apply(RequestTemplate template) {
    template.header("X-Forwarded-For", "origin.host.com");
  }
}
...
Bank bank = Feign.builder()
                 .decoder(accountDecoder)
                 .requestInterceptor(new ForwardedForInterceptor())
                 .target(Bank.class, "https://api.examplebank.com");
```

Another common example of an interceptor would be authentication, such as using the built-in `BasicAuthRequestInterceptor`.

```java
Bank bank = Feign.builder()
                 .decoder(accountDecoder)
                 .requestInterceptor(new BasicAuthRequestInterceptor(username, password))
                 .target(Bank.class, "https://api.examplebank.com");
```

#### Custom @Param Expansion
Parameters annotated with `Param` expand based on their `toString`. By
specifying a custom `Param.Expander`, users can control this behavior,
for example formatting dates.

```java
@RequestLine("GET /?since={date}") Result list(@Param(value = "date", expander = DateToMillis.class) Date date);
```

#### Dynamic Query Parameters
A Map parameter can be annotated with `QueryMap` to construct a query that uses the contents of the map as its query parameters.

```java
@RequestLine("GET /find")
V find(@QueryMap Map<String, Object> queryMap);
```

#### Static and Default Methods
Interfaces targeted by Feign may have static or default methods (if using Java 8+).
These allows Feign clients to contain logic that is not expressly defined by the underlying API.
For example, static methods make it easy to specify common client build configurations; default methods can be used to compose queries or define default parameters.

```java
interface GitHub {
  @RequestLine("GET /repos/{owner}/{repo}/contributors")
  List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);

  @RequestLine("GET /users/{username}/repos?sort={sort}")
  List<Repo> repos(@Param("username") String owner, @Param("sort") String sort);

  default List<Repo> repos(String owner) {
    return repos(owner, "full_name");
  }

  /**
   * Lists all contributors for all repos owned by a user.
   */
  default List<Contributor> contributors(String user) {
    MergingContributorList contributors = new MergingContributorList();
    for(Repo repo : this.repos(owner)) {
      contributors.addAll(this.contributors(user, repo.getName()));
    }
    return contributors.mergeResult();
  }

  static GitHub connect() {
    return Feign.builder()
                .decoder(new GsonDecoder())
                .target(GitHub.class, "https://api.github.com");
  }
}
```


text:
namespace Google.Cloud.Compute.V1.Snippets
{
    // [START compute_v1_generated_Routers_Preview_async]
    using Google.Cloud.Compute.V1;
    using System.Threading.Tasks;

    public sealed partial class GeneratedRoutersClientSnippets
    {
        /// <summary>Snippet for PreviewAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated and should be regarded as a code template only.
        /// It will require modifications to work:
        /// - It may require correct/in-range values for request initialization.
        /// - It may require specifying regional endpoints when creating the service client as shown in
        ///   https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint.
        /// </remarks>
        public async Task PreviewRequestObjectAsync()
        {
            // Create client
            RoutersClient routersClient = await RoutersClient.CreateAsync();
            // Initialize request argument(s)
            PreviewRouterRequest request = new PreviewRouterRequest
            {
                Region = "",
                Router = "",
                RouterResource = new Router(),
                Project = "",
            };
            // Make the request
            RoutersPreviewResponse response = await routersClient.PreviewAsync(request);
        }
    }
    // [END compute_v1_generated_Routers_Preview_async]
}


text:
ActiveRecord::Schema.define(:version => 17) do

  create_table "attachments", :force => true do |t|
    t.integer  "topic_id"
    t.string   "filename"
    t.string   "filetype"
    t.integer  "filesize",   :default => 0
    t.string   "filepath",   :default => ""
    t.integer  "downloads",  :default => 0
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "isimage",    :default => 0
  end

  create_table "categories", :force => true do |t|
    t.integer "parent_id",    :default => 0
    t.string  "title"
    t.string  "desc"
    t.integer "position",     :default => 0
    t.integer "topics_count", :default => 0
  end

  create_table "comments", :force => true do |t|
    t.text     "body"
    t.integer  "type_id"
    t.integer  "topic_id"
    t.string   "name"
    t.string   "email",      :default => " @ "
    t.string   "website",    :default => "http://"
    t.datetime "created_at"
    t.string   "remote_ip"
  end

  create_table "configurations", :force => true do |t|
    t.string "name"
    t.string "title"
    t.string "description"
    t.text   "value"
    t.string "group"
  end

  create_table "links", :force => true do |t|
    t.integer "parent_id",   :default => 0
    t.string  "title"
    t.string  "description"
    t.string  "weburl",      :default => "http://"
    t.integer "position"
    t.integer "visible",     :default => 1
  end

  create_table "natures", :force => true do |t|
    t.string  "title"
    t.string  "description"
    t.integer "topics_count", :default => 0
    t.integer "position",     :default => 0
  end

  create_table "statistics", :force => true do |t|
    t.string   "name"
    t.string   "value"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "tags", :force => true do |t|
    t.string  "title"
    t.string  "description"
    t.integer "topics_count", :default => 0
  end

  create_table "themes", :force => true do |t|
    t.string   "name"
    t.string   "time"
    t.string   "author"
    t.string   "description"
    t.string   "homepage"
    t.string   "preview"
    t.string   "pwd"
    t.string   "useit",       :default => "0"
    t.datetime "created_at"
    t.datetime "updated_at"
  end

  create_table "topics", :force => true do |t|
    t.string   "title"
    t.text     "body"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.integer  "type_id",           :default => 0
    t.integer  "category_id",       :default => 0
    t.integer  "tag_id",            :default => 0
    t.string   "attachment_id",     :default => ""
    t.integer  "user_id",           :default => 0
    t.integer  "views_count",       :default => 0
    t.integer  "comments_count",    :default => 0
    t.integer  "istop",             :default => 0
    t.string   "remote_ip",         :default => ""
    t.string   "keys",              :default => ""
    t.integer  "visible",           :default => 1
    t.integer  "closecomment",      :default => 0
    t.string   "readpassword",      :default => ""
    t.integer  "showsnippet",       :default => 1
    t.integer  "snippetcounts",     :default => 200
    t.integer  "track_backs_count", :default => 0
    t.integer  "nature_id",         :default => 1
  end

  create_table "track_backs", :force => true do |t|
    t.integer  "topic_id"
    t.string   "title",      :default => "TrackBack Titel"
    t.string   "excerpt",    :default => "TrackBack Excerpt"
    t.string   "blog_name",  :default => "Blog Name"
    t.string   "url",        :default => "url"
    t.datetime "created_at"
    t.datetime "updated_at"
    t.string   "remote_ip",  :default => ""
    t.integer  "visible",    :default => 0
  end

  create_table "user_groups", :force => true do |t|
    t.string  "title"
    t.string  "description"
    t.integer "users_count", :default => 0
  end

  create_table "users", :force => true do |t|
    t.string   "login_name"
    t.string   "nickname"
    t.string   "hashed_pass"
    t.string   "email"
    t.string   "im"
    t.text     "personality"
    t.binary   "data"
    t.string   "content_type"
    t.integer  "user_group_id",  :default => 1
    t.integer  "topics_count",   :default => 0
    t.integer  "comments_count", :default => 0
    t.datetime "created_at",     :default => '2008-05-25 02:05:16'
    t.datetime "updated_at"
    t.text     "note"
  end

end