public static void main(String[] args) throws InvalidFormatException, IOException, ClassNotFoundException, InterruptedException {
		
		InputStream is = new FileInputStream( "en-pos-maxent.bin" );
		setModel( new POSModel( is ) ); 
		
		//use sockets?
		System.out.print("USE SOCKETS? ");
		boolean useSockets = scan.nextLine().toLowerCase().equals("true");
		boolean actServer = false;
		if (useSockets)
		{
			System.out.print("ACT AS SERVER? ");
			actServer = scan.nextLine().toLowerCase().equals("true");
		}
		
		if (useSockets && actServer)
		{
			//use sockets as server
			socketServerExchange();
		}
		else if (useSockets && !actServer)
		{
			//use sockets as client
			socketClientExchange();
		}
		else
		{
			//for not sockets
			exchange();
		}
	}