Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 446778 Details for
Bug 594380
app-i18n/sunpinyin-data-20130220 : Compressing bow values...tslmpack: src/.../arpa_conv.cpp:84: unsigned int CArpaLeafConv::get_pr_index(float): Assertion `prit != m_pr_map.end()' failed.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch
sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch (text/plain), 1010 bytes, created by
Peter Levine
on 2016-09-20 07:15:32 UTC
(
hide
)
Description:
sunpinyin-2.0.4_pre20130108-gcc6-use-float.patch
Filename:
MIME Type:
Creator:
Peter Levine
Created:
2016-09-20 07:15:32 UTC
Size:
1010 bytes
patch
obsolete
>--- sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h.old 2016-09-20 02:54:15.046257131 -0400 >+++ sunpinyin-2.0.4_pre20130108/src/slm/tslmpack/common.h 2016-09-20 02:55:48.041124978 -0400 >@@ -53,10 +53,10 @@ > typedef std::map<float, int> RealIndexMap; // map real values to their indices > typedef std::map<std::string, unsigned int> TLexicon; // map word to wid > >-#define EffectivePr(a) (float((usingLogPr) ? ((a) / log(2.0)) : (-log2((a))))) >-#define OriginalPr(b) (float((usingLogPr) ? ((b) * log(2.0)) : (exp2(-(b))))) >-#define EffectiveBow(a) (float((usingLogPr) ? (exp(-(a))) : ((a)))) >-#define OriginalBow(b) (float((usingLogPr) ? (-log((b))) : ((b)))) >+#define EffectivePr(a) (float((usingLogPr) ? ((a) / logf(2.0f)) : (-log2f((a))))) >+#define OriginalPr(b) (float((usingLogPr) ? ((b) * logf(2.0f)) : (exp2f(-(b))))) >+#define EffectiveBow(a) (float((usingLogPr) ? (expf(-(a))) : ((a)))) >+#define OriginalBow(b) (float((usingLogPr) ? (-logf((b))) : ((b)))) > > #endif //_SLM_PACK_COMMON_H >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 594380
:
446650
|
446652
|
446654
| 446778