<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to how-to</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>Recent changes to how-to</description><atom:link href="https://sourceforge.net/p/calbc/home/how-to/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 28 Jul 2011 15:14:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/calbc/home/how-to/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage how-to modified by Sam</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>&lt;pre&gt;--- v4 
+++ v5 
@@ -1,55 +1,56 @@
 ~~~~~~~~
 public class Example {
 
- //This code instantiate the calbc corpus in Java object and retrieve information from it.
-
- //Path to the CALBC file
- private static String pathInput;
-
- public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
-
-  //Where the CALBC i slocated on the hard drive
-  pathInput = "path/to/calbc/file/175k-allcomer-xtype";
-  //Creation of a CALBC file
-  File calbcFile = new File(pathInput);
-  //Creation of a Corpus object. This object holds all the CALBC information
-  Corpus calbc = new Corpus(calbcFile);
-
-  //Once the Corpus object instantiated, it is possible to retrieve the elements:
-
-  //Loop over the articles contained inside the corpus and associated info
-  for (Article article : calbc.getArticles()) {
-   String articleID = article.getId();
-   String articleTitle = article.getTitle());
-   if(currentArticle.getDate() != null){
-    String articleDate = article.getDate();
-   }
-   String pmid = article.getPmid();
-   if(article.getAuthors() != null){
-    //List of the authors attached to the article
-    for (Author author : article.getAuthors()) {
-     if(author.getName() != null){
-      String authorName = author.getName();
-     }
-    }
-   }
-   //Loop over the sentences contained inside the current article 
-   for (Sentence sentence : article.getSentences()) {
-    String sentenceId = sentence.getId();
-    if((sentence.getAnnotations() != null) &amp;&amp; (sentence.getAnnotations().size() &gt; 0)){
-     //Loop over the annotations contained inside the current sentence
-     for (Annotation annotation : sentence.getAnnotations()) {
-      String annotationId = annotation.getId();
-      String annotatedString = annotation.getAnnotatedString());
-      if(annotation.getConsensusTypes() != null){
-       for (String type : annotation.getConsensusTypes()) {
-        String semanticType = type;
-       }
-      }
-     }
-    }
-   }
+  //This code instantiate the calbc corpus in Java object and retrieve information from it.
+
+  //Path to the CALBC file
+  private static String pathInput;
+
+  public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
+
+    //Where the CALBC i slocated on the hard drive
+    pathInput = "path/to/calbc/file/175k-allcomer-xtype";
+    //Creation of a CALBC file
+    File calbcFile = new File(pathInput);
+    //Creation of a Corpus object. This object holds all the CALBC information
+    Corpus calbc = new Corpus(calbcFile);
+
+    //Once the Corpus object instantiated, it is possible to retrieve the elements:
+
+    //Loop over the articles contained inside the corpus and associated info
+    for (Article article : calbc.getArticles()) {
+      String articleID = article.getId();
+      String articleTitle = article.getTitle());
+      if(currentArticle.getDate() != null){
+        String articleDate = article.getDate();
+      }
+      String pmid = article.getPmid();
+      if(article.getAuthors() != null){
+        //List of the authors attached to the article
+        for (Author author : article.getAuthors()) {
+          if(author.getName() != null){
+            String authorName = author.getName();
+          }
+        }
+      }
+      //Loop over the sentences contained inside the current article  
+      for (Sentence sentence : article.getSentences()) {
+        String sentenceId = sentence.getId();
+        if((sentence.getAnnotations() != null) &amp;&amp; (sentence.getAnnotations().size() &gt; 0)){
+          //Loop over the annotations contained inside the current sentence
+          for (Annotation annotation : sentence.getAnnotations()) {
+            String annotationId = annotation.getId();
+            String annotatedString = annotation.getAnnotatedString());
+            if(annotation.getConsensusTypes() != null){
+              for (String type : annotation.getConsensusTypes()) {
+                String semanticType = type;
+              }
+            }
+          }
+        }
+      }
+    }
   }
- }
 }
+
 ~~~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam</dc:creator><pubDate>Thu, 28 Jul 2011 15:14:21 -0000</pubDate><guid>https://sourceforge.net1cf3ebee496bb96d48541d74066b37a30beefc6e</guid></item><item><title>WikiPage how-to modified by Sam</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>&lt;pre&gt;--- v3 
+++ v4 
@@ -1,55 +1,55 @@
-~~~~~~~
+~~~~~~~~
 public class Example {
 
-  //This code instantiate the calbc corpus in Java object and retrieve information from it.
-
-  //Path to the CALBC file
-  private static String pathInput;
-
-  public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
-
-    //Where the CALBC i slocated on the hard drive
-    pathInput = "path/to/calbc/file/175k-allcomer-xtype";
-    //Creation of a CALBC file
-    File calbcFile = new File(pathInput);
-    //Creation of a Corpus object. This object holds all the CALBC information
-    Corpus calbc = new Corpus(calbcFile);
-
-    //Once the Corpus object instantiated, it is possible to retrieve the elements:
+ //This code instantiate the calbc corpus in Java object and retrieve information from it.
+
+ //Path to the CALBC file
+ private static String pathInput;
+
+ public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
+
+  //Where the CALBC i slocated on the hard drive
+  pathInput = "path/to/calbc/file/175k-allcomer-xtype";
+  //Creation of a CALBC file
+  File calbcFile = new File(pathInput);
+  //Creation of a Corpus object. This object holds all the CALBC information
+  Corpus calbc = new Corpus(calbcFile);
+
+  //Once the Corpus object instantiated, it is possible to retrieve the elements:
 
   //Loop over the articles contained inside the corpus and associated info
   for (Article article : calbc.getArticles()) {
    String articleID = article.getId();
    String articleTitle = article.getTitle());
    if(currentArticle.getDate() != null){
     String articleDate = article.getDate();
    }
    String pmid = article.getPmid();
    if(article.getAuthors() != null){
     //List of the authors attached to the article
     for (Author author : article.getAuthors()) {
      if(author.getName() != null){
       String authorName = author.getName();
      }
     }
    }
-   //Loop over the sentences contained inside the current article
+   //Loop over the sentences contained inside the current article 
    for (Sentence sentence : article.getSentences()) {
     String sentenceId = sentence.getId();
     if((sentence.getAnnotations() != null) &amp;&amp; (sentence.getAnnotations().size() &gt; 0)){
      //Loop over the annotations contained inside the current sentence
      for (Annotation annotation : sentence.getAnnotations()) {
       String annotationId = annotation.getId();
       String annotatedString = annotation.getAnnotatedString());
       if(annotation.getConsensusTypes() != null){
        for (String type : annotation.getConsensusTypes()) {
         String semanticType = type;
        }
       }
      }
     }
    }
   }
-  }
+ }
 }
-~~~~~~~
+~~~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam</dc:creator><pubDate>Thu, 28 Jul 2011 15:13:22 -0000</pubDate><guid>https://sourceforge.net949a2796b792e0191d91d02a2280da6017c8d66c</guid></item><item><title>WikiPage how-to modified by Sam</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -1,54 +1,55 @@
-How to retrieve Java objects from the CALBC in XML:
-~~~~~
+~~~~~~~
 public class Example {
 
+  //This code instantiate the calbc corpus in Java object and retrieve information from it.
+
   //Path to the CALBC file
   private static String pathInput;
 
   public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
 
     //Where the CALBC i slocated on the hard drive
     pathInput = "path/to/calbc/file/175k-allcomer-xtype";
     //Creation of a CALBC file
     File calbcFile = new File(pathInput);
     //Creation of a Corpus object. This object holds all the CALBC information
     Corpus calbc = new Corpus(calbcFile);
 
     //Once the Corpus object instantiated, it is possible to retrieve the elements:
 
   //Loop over the articles contained inside the corpus and associated info
   for (Article article : calbc.getArticles()) {
    String articleID = article.getId();
    String articleTitle = article.getTitle());
    if(currentArticle.getDate() != null){
     String articleDate = article.getDate();
    }
    String pmid = article.getPmid();
    if(article.getAuthors() != null){
     //List of the authors attached to the article
     for (Author author : article.getAuthors()) {
      if(author.getName() != null){
       String authorName = author.getName();
      }
     }
    }
    //Loop over the sentences contained inside the current article
    for (Sentence sentence : article.getSentences()) {
     String sentenceId = sentence.getId();
     if((sentence.getAnnotations() != null) &amp;&amp; (sentence.getAnnotations().size() &gt; 0)){
      //Loop over the annotations contained inside the current sentence
      for (Annotation annotation : sentence.getAnnotations()) {
       String annotationId = annotation.getId();
       String annotatedString = annotation.getAnnotatedString());
       if(annotation.getConsensusTypes() != null){
        for (String type : annotation.getConsensusTypes()) {
         String semanticType = type;
        }
       }
      }
     }
    }
   }
   }
 }
-~~~~~
+~~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam</dc:creator><pubDate>Thu, 28 Jul 2011 15:11:45 -0000</pubDate><guid>https://sourceforge.net0b71be1b1cae356a3ae86df8534352d7b67cc626</guid></item><item><title>WikiPage how-to modified by Sam</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -1,14 +1,54 @@
+How to retrieve Java objects from the CALBC in XML:
 ~~~~~
-public class LaunchConversion {
-
+public class Example {
+
+  //Path to the CALBC file
   private static String pathInput;
-  private static String pathOutput;
 
   public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
 
+    //Where the CALBC i slocated on the hard drive
     pathInput = "path/to/calbc/file/175k-allcomer-xtype";
+    //Creation of a CALBC file
     File calbcFile = new File(pathInput);
+    //Creation of a Corpus object. This object holds all the CALBC information
     Corpus calbc = new Corpus(calbcFile);
+
+    //Once the Corpus object instantiated, it is possible to retrieve the elements:
+
+  //Loop over the articles contained inside the corpus and associated info
+  for (Article article : calbc.getArticles()) {
+   String articleID = article.getId();
+   String articleTitle = article.getTitle());
+   if(currentArticle.getDate() != null){
+    String articleDate = article.getDate();
+   }
+   String pmid = article.getPmid();
+   if(article.getAuthors() != null){
+    //List of the authors attached to the article
+    for (Author author : article.getAuthors()) {
+     if(author.getName() != null){
+      String authorName = author.getName();
+     }
+    }
+   }
+   //Loop over the sentences contained inside the current article
+   for (Sentence sentence : article.getSentences()) {
+    String sentenceId = sentence.getId();
+    if((sentence.getAnnotations() != null) &amp;&amp; (sentence.getAnnotations().size() &gt; 0)){
+     //Loop over the annotations contained inside the current sentence
+     for (Annotation annotation : sentence.getAnnotations()) {
+      String annotationId = annotation.getId();
+      String annotatedString = annotation.getAnnotatedString());
+      if(annotation.getConsensusTypes() != null){
+       for (String type : annotation.getConsensusTypes()) {
+        String semanticType = type;
+       }
+      }
+     }
+    }
+   }
+  }
   }
 }
 ~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam</dc:creator><pubDate>Thu, 28 Jul 2011 15:08:05 -0000</pubDate><guid>https://sourceforge.net3a6e45c6fd1d63332fedba6512b9ab1591839a0a</guid></item><item><title>WikiPage how-to modified by Sam</title><link>https://sourceforge.net/p/calbc/home/how-to/</link><description>~~~~~
public class LaunchConversion {

  private static String pathInput;
  private static String pathOutput;

  public static void main(String[] args) throws FileNotFoundException, XMLStreamException {

    pathInput = "path/to/calbc/file/175k-allcomer-xtype";
    File calbcFile = new File(pathInput);
    Corpus calbc = new Corpus(calbcFile);
  }
}
~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sam</dc:creator><pubDate>Thu, 28 Jul 2011 14:58:14 -0000</pubDate><guid>https://sourceforge.net1075f1ae6d758e5839813f84956adb86f39b6da3</guid></item></channel></rss>