@Test public void createNameFirstWordsHashBucketMatcherVoters() { List<AffOrgMatchVoter> voters = FirstWordsHashBucketMatcherFactory.createNameFirstWordsHashBucketMatcherVoters(); assertNameFirstWordsHashBucketMatcherVoters(voters); }
public static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters() { CommonWordsVoter commonOrgNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.71, WITH_REGARD_TO_ORG_WORDS); commonOrgNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CommonWordsVoter commonAffNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.81, WITH_REGARD_TO_AFF_WORDS); commonAffNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CompositeMatchVoter commonAffOrgNameWordsVoter = new CompositeMatchVoter(ImmutableList.of(new CountryCodeLooseMatchVoter(), commonOrgNameWordsVoter, commonAffNameWordsVoter)); commonAffOrgNameWordsVoter.setMatchStrength(0.859f); return ImmutableList.of( createNameCountryStrictMatchVoter(0.981f, new GetOrgNameFunction()), createNameStrictCountryLooseMatchVoter(0.966f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.943f, new GetOrgNameFunction()), createSectionedNameLevenshteinCountryLooseMatchVoter(0.934f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.882f, new GetOrgShortNameFunction()), commonAffOrgNameWordsVoter); }
FirstWordsHashBucketMatcherFactory { public static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters() { CommonWordsVoter commonOrgNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.71, WITH_REGARD_TO_ORG_WORDS); commonOrgNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CommonWordsVoter commonAffNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.81, WITH_REGARD_TO_AFF_WORDS); commonAffNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CompositeMatchVoter commonAffOrgNameWordsVoter = new CompositeMatchVoter(ImmutableList.of(new CountryCodeLooseMatchVoter(), commonOrgNameWordsVoter, commonAffNameWordsVoter)); commonAffOrgNameWordsVoter.setMatchStrength(0.859f); return ImmutableList.of( createNameCountryStrictMatchVoter(0.981f, new GetOrgNameFunction()), createNameStrictCountryLooseMatchVoter(0.966f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.943f, new GetOrgNameFunction()), createSectionedNameLevenshteinCountryLooseMatchVoter(0.934f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.882f, new GetOrgShortNameFunction()), commonAffOrgNameWordsVoter); } }
FirstWordsHashBucketMatcherFactory { public static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters() { CommonWordsVoter commonOrgNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.71, WITH_REGARD_TO_ORG_WORDS); commonOrgNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CommonWordsVoter commonAffNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.81, WITH_REGARD_TO_AFF_WORDS); commonAffNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CompositeMatchVoter commonAffOrgNameWordsVoter = new CompositeMatchVoter(ImmutableList.of(new CountryCodeLooseMatchVoter(), commonOrgNameWordsVoter, commonAffNameWordsVoter)); commonAffOrgNameWordsVoter.setMatchStrength(0.859f); return ImmutableList.of( createNameCountryStrictMatchVoter(0.981f, new GetOrgNameFunction()), createNameStrictCountryLooseMatchVoter(0.966f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.943f, new GetOrgNameFunction()), createSectionedNameLevenshteinCountryLooseMatchVoter(0.934f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.882f, new GetOrgShortNameFunction()), commonAffOrgNameWordsVoter); } private  FirstWordsHashBucketMatcherFactory(); }
FirstWordsHashBucketMatcherFactory { public static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters() { CommonWordsVoter commonOrgNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.71, WITH_REGARD_TO_ORG_WORDS); commonOrgNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CommonWordsVoter commonAffNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.81, WITH_REGARD_TO_AFF_WORDS); commonAffNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CompositeMatchVoter commonAffOrgNameWordsVoter = new CompositeMatchVoter(ImmutableList.of(new CountryCodeLooseMatchVoter(), commonOrgNameWordsVoter, commonAffNameWordsVoter)); commonAffOrgNameWordsVoter.setMatchStrength(0.859f); return ImmutableList.of( createNameCountryStrictMatchVoter(0.981f, new GetOrgNameFunction()), createNameStrictCountryLooseMatchVoter(0.966f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.943f, new GetOrgNameFunction()), createSectionedNameLevenshteinCountryLooseMatchVoter(0.934f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.882f, new GetOrgShortNameFunction()), commonAffOrgNameWordsVoter); } private  FirstWordsHashBucketMatcherFactory(); static AffOrgMatcher createNameFirstWordsHashBucketMatcher(); static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters(); }
FirstWordsHashBucketMatcherFactory { public static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters() { CommonWordsVoter commonOrgNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.71, WITH_REGARD_TO_ORG_WORDS); commonOrgNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CommonWordsVoter commonAffNameWordsVoter = new CommonWordsVoter(ImmutableList.of(',', ';'), 2, 0.81, WITH_REGARD_TO_AFF_WORDS); commonAffNameWordsVoter.setCommonSimilarWordCalculator(new CommonSimilarWordCalculator(0.9)); CompositeMatchVoter commonAffOrgNameWordsVoter = new CompositeMatchVoter(ImmutableList.of(new CountryCodeLooseMatchVoter(), commonOrgNameWordsVoter, commonAffNameWordsVoter)); commonAffOrgNameWordsVoter.setMatchStrength(0.859f); return ImmutableList.of( createNameCountryStrictMatchVoter(0.981f, new GetOrgNameFunction()), createNameStrictCountryLooseMatchVoter(0.966f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.943f, new GetOrgNameFunction()), createSectionedNameLevenshteinCountryLooseMatchVoter(0.934f, new GetOrgNameFunction()), createSectionedNameStrictCountryLooseMatchVoter(0.882f, new GetOrgShortNameFunction()), commonAffOrgNameWordsVoter); } private  FirstWordsHashBucketMatcherFactory(); static AffOrgMatcher createNameFirstWordsHashBucketMatcher(); static ImmutableList<AffOrgMatchVoter> createNameFirstWordsHashBucketMatcherVoters();  }