@@ -0,0 +1,1505 @@
+/*%0A * Copyright 2008 Novamente LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage relex;%0A%0Aimport java.io.Serializable;%0Aimport java.util.ArrayList;%0A%0Aimport relex.feature.Atom;%0A%0A/**%0A * The Document class stores a sequence of Sentence objects.%0A * It is primarily useful for any post-processing steps, anthing%0A * that needs to obtain access multiple sentences at a time.%0A *%0A */%0Apublic class Document extends Atom implements Serializable%0A%7B%0A%09private static final long serialVersionUID = -4518792541801263127L;%0A%0A%09// Unique ID string identifying this document.%0A%09private String idString;%0A%0A%09// Sequence of sentences%0A%09private ArrayList%3CSentence%3E sentences;%0A%0A%09/* -------------------------------------------------------------------- */%0A%09/* Constructors, and setters/getters for private members. */%0A%09// Constructor.%0A%09public Document()%0A%09%7B%0A%09%09sentences = null;%0A%09%7D%0A%0A%09public String getIDString() %7B%0A%09%09return idString;%0A%09%7D%0A%0A%09public void setIDString(String str) %7B%0A%09%09idString = str;%0A%09%7D%0A%0A%7D // end Document%0A

create a new Document class, for holding multiple sentences