code: protected SemanticSpace getSpace() {
          WeightingFunction weighting;
          if (argOptions.hasOption('W'))
              weighting = ReflectionUtil.getObjectInstance(argOptions.getStringOption('W'));
          else
              weighting = new LinearWeighting();
          int windowSize = argOptions.getIntOption('s', 5);
          double threshold = argOptions.getDoubleOption('h', -1d);
          int retain = argOptions.getIntOption('r', -1);
  
          return new HyperspaceAnalogueToLanguage(
                  new StringBasisMapping(), windowSize, weighting,
                  threshold, retain);
      }
docs: {@inheritDoc}