// Path: java_sentence_completion/src/parser/Tokenizer.java
// public abstract class Tokenizer {
// 	/**
// 	 * convert a sentence presented as words into symbols
// 	 * 
// 	 * @param words
// 	 *            can contain empty strings, or be null
// 	 * @return one symbol per word, in the same order. null means no symbol for
// 	 *         the word (can be used to deal with multi-word symbols)
// 	 *         <p>
// 	 *         <strong>Condition:</strong>
// 	 *         </p>
// 	 *         <p>
// 	 *         words == return == null || return.length == words.length
// 	 *         </p>
// 	 */
// 	public abstract String[] words2symbols(String[] words);
// 
// 	/**
// 	 * parse <em>line</em> into symbols, using <em>separator_regex</em> to
// 	 * separate the words. Empty words "" are ignored
// 	 * 
// 	 * @param line
// 	 *            can be null
// 	 * @param separator_regex
// 	 *            non-null, well-formed regex for the separator
// 	 * @return one symbol per word, in the same order, null if line is null
// 	 * @see #words2symbols(String[])
// 	 */
// 	public String[] parse(String line, String separator_regex) {
// 		return parse(line, Pattern.compile(separator_regex));
// 	}
// 
// 	/**
// 	 * Core of {@link #parse(String, String)}, for optimisation
// 	 * 
// 	 * @see #parse(String, String)
// 	 * @see #words2symbols(String[])
// 	 */
// 	public String[] parse(String line, Pattern separator_pattern) {
// 		if (line == null) {
// 			return null;
// 		}
// 		String[] temp = ArrayTools.removeEvery("",
// 				separator_pattern.split(line));
// 
// 		return words2symbols(temp);
// 	}
// }
// 
// Path: java_sentence_completion/src/parser/WordTokenizer.java
// public class WordTokenizer extends Tokenizer {
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * 
// 	 * @see parser.Tokenizer#words2symbols(java.lang.String[])
// 	 */
// 	@Override
// 	public String[] words2symbols(String[] words) {
// 		return words;
// 	}
// 
// }


import java.io.IOException;
import parser.Tokenizer;
import parser.WordTokenizer;
/**
 * Copyright 2011-2012 Bernard Paulus and Cédric Snauwaert
 * 
 * Confabulation_Symbolic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Confabulation_Symbolic is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Confabulation_Symbolic.  If not, see <http://www.gnu.org/licenses/>.
 */

package confabulation;



/**
 * @author bernard and cedric
 * 
 */
public class Multiconfabulation1 extends FullMeshConfabulation {

	protected int n_multiconf;
	
	public Multiconfabulation1(int n_modules, String filename)
			throws IOException {
		this(n_modules, filename, new WordTokenizer());
	}

// Path: java_sentence_completion/src/parser/Tokenizer.java
// public abstract class Tokenizer {
// 	/**
// 	 * convert a sentence presented as words into symbols
// 	 * 
// 	 * @param words
// 	 *            can contain empty strings, or be null
// 	 * @return one symbol per word, in the same order. null means no symbol for
// 	 *         the word (can be used to deal with multi-word symbols)
// 	 *         <p>
// 	 *         <strong>Condition:</strong>
// 	 *         </p>
// 	 *         <p>
// 	 *         words == return == null || return.length == words.length
// 	 *         </p>
// 	 */
// 	public abstract String[] words2symbols(String[] words);
// 
// 	/**
// 	 * parse <em>line</em> into symbols, using <em>separator_regex</em> to
// 	 * separate the words. Empty words "" are ignored
// 	 * 
// 	 * @param line
// 	 *            can be null
// 	 * @param separator_regex
// 	 *            non-null, well-formed regex for the separator
// 	 * @return one symbol per word, in the same order, null if line is null
// 	 * @see #words2symbols(String[])
// 	 */
// 	public String[] parse(String line, String separator_regex) {
// 		return parse(line, Pattern.compile(separator_regex));
// 	}
// 
// 	/**
// 	 * Core of {@link #parse(String, String)}, for optimisation
// 	 * 
// 	 * @see #parse(String, String)
// 	 * @see #words2symbols(String[])
// 	 */
// 	public String[] parse(String line, Pattern separator_pattern) {
// 		if (line == null) {
// 			return null;
// 		}
// 		String[] temp = ArrayTools.removeEvery("",
// 				separator_pattern.split(line));
// 
// 		return words2symbols(temp);
// 	}
// }
// 
// Path: java_sentence_completion/src/parser/WordTokenizer.java
// public class WordTokenizer extends Tokenizer {
// 
// 	/*
// 	 * (non-Javadoc)
// 	 * 
// 	 * @see parser.Tokenizer#words2symbols(java.lang.String[])
// 	 */
// 	@Override
// 	public String[] words2symbols(String[] words) {
// 		return words;
// 	}
// 
// }


// Path: java_sentence_completion/src/confabulation/Multiconfabulation1.java
import java.io.IOException;
import parser.Tokenizer;
import parser.WordTokenizer;

/**
 * Copyright 2011-2012 Bernard Paulus and Cédric Snauwaert
 * 
 * Confabulation_Symbolic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Confabulation_Symbolic is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Confabulation_Symbolic.  If not, see <http://www.gnu.org/licenses/>.
 */

package confabulation;



/**
 * @author bernard and cedric
 * 
 */
public class Multiconfabulation1 extends FullMeshConfabulation {

	protected int n_multiconf;
	
	public Multiconfabulation1(int n_modules, String filename)
			throws IOException {
		this(n_modules, filename, new WordTokenizer());
	}

	public Multiconfabulation1(int n_modules, String filename, Tokenizer tok)