private void printSpace ( SemanticSpace sspace , String tag ) { try { String EXT = ".sspace" ; File output = ( overwrite ) ? new File ( outputDir , sspace . getSpaceName ( ) + tag + EXT ) : File . createTempFile ( sspace . getSpaceName ( ) + tag , EXT , outputDir ) ; long startTime = System . currentTimeMillis ( ) ; SemanticSpaceIO . save ( sspace , output , format ) ; long endTime = System . currentTimeMillis ( ) ; verbose ( "printed space in %.3f seconds%n" , ( ( endTime - startTime ) / 1000d ) ) ; } catch ( IOException ioe ) { throw new IOError ( ioe ) ; } }
Prints the semantic space to file inserting the tag into the . sspace file name