Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.5 KiB

  1. // *****************************************************************************
  2. // Microsoft Intelligent IME
  3. //
  4. // Microsoft Confidential.
  5. // Copyright 1996-2000 Microsoft Corporation. All Rights Reserved.
  6. //
  7. // Project: IME 2000
  8. // Component: IFELang3 component entry
  9. // Module: fel3user.h
  10. // Notes: Define CLSIDs for PRC and TC IFELang3 language model.
  11. // This header will be exposed to IFELang3 clients
  12. // Owner: [email protected]
  13. // Platform: Win32
  14. // Revise: 6/7/2000 create
  15. // 8/9/2000 update names and add normalize factor
  16. // *****************************************************************************
  17. #ifndef _FEL3USER_H_
  18. #define _FEL3USER_H_
  19. // GUID for client parameter of Chinese ImeLM
  20. DEFINE_GUID(GUID_CHINESE_IMELM_PARAM, 0xff6e52b3, 0x6de6, 0x11d4, 0x97, 0xfc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0);
  21. // This is a LicenseId, the LM component uses this ID to identify
  22. // whether the client is valid and legal
  23. #define CHINESE_IMELM_LICENSEID 0x00000200
  24. // HW TIP pass this paramter via one of tuning parameters in the
  25. // IIMLanguage::GetLatticeMorphResult() call. imlang.dll passes it
  26. // to the above IMLanguageComponent.
  27. struct SImeLMParam
  28. {
  29. // LicenseId must be CHINESE_IMELM_LICENSEID for GUID_CLIENT_HWTIP1
  30. DWORD dwLicenseId;
  31. // normalize factor multiply on the log_e(prob) exposed from dwUnigram
  32. // in NeutralData. Pass 0.0 to disable score/cost merging
  33. FLOAT flWeight;
  34. };
  35. #endif // _FEL3USER_H_