lib_entityscore.ecllib 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2020 HPCC Systems® .
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. /* Proxy plugin definition for (EE only) entityscore library */
  14. export TextSearchDataRecord := record varunicode indexWord; varunicode searchContext; end;
  15. export TextSearchResultRecord := record integer4 score; varunicode matchContext; end;
  16. export EntityScoreLib := SERVICE : plugin('entityscorelib'), time
  17. integer4 AddressCompare(unicode streetOrFull1, unicode city1, unicode state1, unicode pcode1, unicode country1, unicode streetOrFull2, unicode city2, unicode state2, unicode pcode2, unicode country2) : c, pure, entrypoint='ESL_AddressCompare';
  18. integer4 AddressIndexWordCompare(unicode word1, unicode word2) : c, pure, entrypoint='ESL_AddressIndexWordCompare';
  19. integer4 CountryCompare(unicode country1, unicode country2) : c, pure, entrypoint='ESL_CountryCompare';
  20. integer4 CountryIndexWordCompare(unicode word1, unicode word2) : c, pure, entrypoint='ESL_CountryIndexWordCompare';
  21. integer4 IDCompare(unicode id1, unicode id2) : c, pure, entrypoint='ESL_IDCompare';
  22. integer4 NameCompare(unsigned4 entityType1, unicode lastOrFull1, unicode first1, unicode middle1, unsigned4 entityType2, unicode lastOrFull2, unicode first2, unicode middle2, boolean initials) : c, pure, entrypoint='ESL_NameCompare';
  23. integer4 NameIndexWordCompare(unicode word1, unicode word2) : c, pure, entrypoint='ESL_NameIndexWordCompare';
  24. integer4 PhoneCompare(unicode phone1, unicode phone2) : c, pure, entrypoint='ESL_PhoneCompare';
  25. dataset(TextSearchResultRecord) TextCountryCompare(unicode text, unicode country) : c, pure, entrypoint='ESL_TextCountryCompare';
  26. dataset(TextSearchResultRecord) TextNameCompare(unicode text, unsigned4 entityType, unicode lastOrFull, unicode first, unicode middle, boolean initials) : c, pure, entrypoint='ESL_TextNameCompare';
  27. dataset(TextSearchDataRecord) TextSearchData(unicode text, unsigned4 contextLen) : c, pure, entrypoint='ESL_TextSearchData';
  28. boolean IsAddressPartial(unicode streetOrFull, unicode city, unicode state, unicode pcode, unicode country) : c, pure, entrypoint='ESL_IsAddressPartial';
  29. boolean IsAddressCommonWord(unicode word) : c, pure, entrypoint='ESL_IsAddressCommonWord';
  30. boolean IsCountryCommonWord(unicode word) : c, pure, entrypoint='ESL_IsCountryCommonWord';
  31. boolean IsDirectionCommonWord(unicode word) : c, pure, entrypoint='ESL_IsDirectionCommonWord';
  32. boolean IsIndividualCommonWord(unicode word) : c, pure, entrypoint='ESL_IsIndividualCommonWord';
  33. boolean IsOrganizationCommonWord(unicode word) : c, pure, entrypoint='ESL_IsOrganizationCommonWord';
  34. END;