public PartialMatchingTokenBreaker( int minLengthOfPartialMatches, int maxLengthOfPartialMatches, ITokenBreaker tokenBreaker, PartialMatchWeightDeterminer partialMatchWeightDeterminer) : this(minLengthOfPartialMatches, maxLengthOfPartialMatches, false, tokenBreaker, partialMatchWeightDeterminer) { }
public PartialMatchingTokenBreaker( int minLengthOfPartialMatches, int maxLengthOfPartialMatches, bool fromStartOfTokenOnly, ITokenBreaker tokenBreaker, PartialMatchWeightDeterminer partialMatchWeightDeterminer) : this(minLengthOfPartialMatches, maxLengthOfPartialMatches, fromStartOfTokenOnly, tokenBreaker, null, partialMatchWeightDeterminer) { }
public PartialMatchingTokenBreaker( int minLengthOfPartialMatches, int maxLengthOfPartialMatches, bool fromStartOfTokenOnly, ITokenBreaker tokenBreaker, ITokenBreaker optionalPrePartialMatchTokenBreaker, PartialMatchWeightDeterminer partialMatchWeightDeterminer) { if (minLengthOfPartialMatches <= 0) { throw new ArgumentOutOfRangeException("minLengthOfPartialMatches", "must be greater than zero"); } if (maxLengthOfPartialMatches <= 0) { throw new ArgumentOutOfRangeException("maxLengthOfPartialMatches", "must be greater than zero"); } if (maxLengthOfPartialMatches < minLengthOfPartialMatches) { throw new ArgumentOutOfRangeException("maxLengthOfPartialMatches", "must be greater than minLengthOfPartialMatches"); } if (tokenBreaker == null) { throw new ArgumentNullException("tokenBreaker"); } if (partialMatchWeightDeterminer == null) { throw new ArgumentNullException("partialMatchWeightDeterminer"); } _minLengthOfPartialMatches = minLengthOfPartialMatches; _maxLengthOfPartialMatches = maxLengthOfPartialMatches; _fromStartOfTokenOnly = fromStartOfTokenOnly; _tokenBreaker = tokenBreaker; _optionalPrePartialMatchTokenBreaker = optionalPrePartialMatchTokenBreaker; _partialMatchWeightDeterminer = partialMatchWeightDeterminer; }