code: @SuppressWarnings("unchecked")
    @Override
    public void loadClassifier(ObjectInputStream ois, Properties props) throws ClassCastException, IOException, ClassNotFoundException {
      classifier = (LinearClassifier<String, String>) ois.readObject();
      flags = (SeqClassifierFlags) ois.readObject();
      featureFactory = (FeatureFactory) ois.readObject();
  
      if (props != null) {
        flags.setProperties(props);
      }
      reinit();
  
      classIndex = (Index<String>) ois.readObject();
      answerArrays = (Set<List<String>>) ois.readObject();
  
      knownLCWords = (Set<String>) ois.readObject();
    }
docs: Load a classifier from the given Stream.
  <i>Implementation note: </i> This method <i>does not</i> close the
  Stream that it reads from.
  
  @param ois The ObjectInputStream to load the serialized classifier from
  
  @throws IOException If there are problems accessing the input stream
  @throws ClassCastException If there are problems interpreting the serialized data
  @throws ClassNotFoundException If there are problems interpreting the serialized data