org.itc.irst.tcc.sre.data.SentenceSetCopy Maven / Gradle / Ivy
/*
* Copyright 2005 FBK-irst (http://www.fbk.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.itc.irst.tcc.sre.data;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import org.itc.irst.tcc.sre.data.context.AgentContext;
import org.itc.irst.tcc.sre.data.context.BetweenAfterContext;
import org.itc.irst.tcc.sre.data.context.BetweenContext;
import org.itc.irst.tcc.sre.data.context.ForeBetweenContext;
import org.itc.irst.tcc.sre.data.context.SecondTargetContext;
import org.itc.irst.tcc.sre.data.context.TargetContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* TO DO
*
* @author Claudio Giuliano
* @version %I%, %G%
* @since 1.0
*/
public class SentenceSetCopy extends ExampleSet
{
/**
* Define a static logger variable so that it references the
* Logger instance named SentenceSetCopy
.
*/
static Logger logger = LoggerFactory.getLogger(SentenceSetCopy.class.getName());
//
public void write(Writer out) throws IOException
{
PrintWriter pw = new PrintWriter(out);
for (int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy