Author: buildbot
Date: Fri Nov 23 13:13:19 2012
New Revision: 839312

Log:
Staging update by buildbot for stanbol

Modified:
    websites/staging/stanbol/trunk/content/   (props changed)
    
websites/staging/stanbol/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.html

Propchange: websites/staging/stanbol/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Nov 23 13:13:19 2012
@@ -1 +1 @@
-1412870
+1412872

Modified: 
websites/staging/stanbol/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.html
==============================================================================
--- 
websites/staging/stanbol/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.html
 (original)
+++ 
websites/staging/stanbol/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.html
 Fri Nov 23 13:13:19 2012
@@ -191,14 +191,16 @@
 <ol>
 <li>
 <p>One needs to define the <em>Annotations</em> one would like to use. 
Annotations are typically defined as public static members of interfaces or 
classes. The following example uses the definition of the Part of Speech 
annotation.</p>
-<p>:::java
-public interface NlpAnnotations {
-//an Part of Speech Annotation using a String key
-    //and the PosTag class as value
-    Annotation<String,PosTag> POS_ANNOTATION = new Annotation<String,PosTag>(
-        "stanbol.enhancer.nlp.pos", PosTag.class);
-...
-}</p>
+<div class="codehilite"><pre><span class="kd">public</span> <span 
class="kd">interface</span> <span class="nc">NlpAnnotations</span> <span 
class="o">{</span>
+    <span class="c1">//an Part of Speech Annotation using a String key</span>
+    <span class="c1">//and the PosTag class as value</span>
+    <span class="n">Annotation</span><span class="o">&lt;</span><span 
class="n">String</span><span class="o">,</span><span 
class="n">PosTag</span><span class="o">&gt;</span> <span 
class="n">POS_ANNOTATION</span> <span class="o">=</span> <span 
class="k">new</span> <span class="n">Annotation</span><span 
class="o">&lt;</span><span class="n">String</span><span class="o">,</span><span 
class="n">PosTag</span><span class="o">&gt;(</span>
+        <span class="s">&quot;stanbol.enhancer.nlp.pos&quot;</span><span 
class="o">,</span> <span class="n">PosTag</span><span class="o">.</span><span 
class="na">class</span><span class="o">);</span>
+    <span class="o">...</span>
+<span class="o">}</span>
+</pre></div>
+
+
 </li>
 <li>
 <p>Defined <em>Annotation</em> are used to add information to an 
<em>Annotated</em> instance (like a Span). For adding annotations the use of 
_Annotation_s is required to ensure type safety. The following code snippet 
shows how to add an PosTag with the probability 0.95.</p>


Reply via email to