Author: rwesten
Date: Fri Nov 23 13:13:11 2012
New Revision: 1412872
URL: http://svn.apache.org/viewvc?rev=1412872&view=rev
Log:
STANBOL-733 - minor
Modified:
stanbol/site/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.mdtext
Modified:
stanbol/site/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.mdtext
URL:
http://svn.apache.org/viewvc/stanbol/site/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.mdtext?rev=1412872&r1=1412871&r2=1412872&view=diff
==============================================================================
---
stanbol/site/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.mdtext
(original)
+++
stanbol/site/trunk/content/docs/trunk/components/enhancer/nlp/analyzedtext.mdtext
Fri Nov 23 13:13:11 2012
@@ -122,14 +122,14 @@ The following example shows the intended
1. One needs to define the _Annotations_ 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.
- :::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);
-...
- }
+ :::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);
+ ...
+ }
2. Defined _Annotation_ are used to add information to an _Annotated_ 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.