@SuppressWarnings("unchecked")
    public static Map<String,TernaryVector> load(File indexVectorFile) {
        try {
            FileInputStream fis = new FileInputStream(indexVectorFile);
            ObjectInputStream inStream = new ObjectInputStream(fis);
            Map<String, TernaryVector> vectorMap = 
                (Map<String, TernaryVector>) inStream.readObject();
            inStream.close();
            return vectorMap;
        } catch (IOException ioe) {
            throw new IOError(ioe);
        } catch (ClassNotFoundException cnfe) {
            throw new Error(cnfe);
        }
    }
@ SuppressWarnings ( "unchecked" ) public static Map < String , TernaryVector > load ( File indexVectorFile ) { try { FileInputStream fis = new FileInputStream ( indexVectorFile ) ; ObjectInputStream inStream = new ObjectInputStream ( fis ) ; Map < String , TernaryVector > vectorMap = ( Map < String , TernaryVector > ) inStream . readObject ( ) ; inStream . close ( ) ; return vectorMap ; } catch ( IOException ioe ) { throw new IOError ( ioe ) ; } catch ( ClassNotFoundException cnfe ) { throw new Error ( cnfe ) ; } }
Loads a mapping from word to {@link TernaryVector} from the file