public static < T extends Normalizer > T restoreNormalizerFromInputStream ( InputStream is ) throws IOException { checkInputStream ( is ) ; File tmpFile = null ; try { tmpFile = tempFileFromStream ( is ) ; return restoreNormalizerFromFile ( tmpFile ) ; } finally { if ( tmpFile != null ) { tmpFile . delete ( ) ; } } }
This method restores the normalizer form a persisted model file .