gpt4 book ai didi

Javadoc:如何修复: "bad HTML entity"错误

转载 作者:行者123 更新时间:2023-12-04 22:19:28 24 4
gpt4 key购买 nike

我收到此错误:

[ERROR] /Users/daniel/ideaProjects/lbjava/lbjava/src/main/java/edu/illinois/cs/cogcomp/lbjava/learn/NaiveBayes.java:638: error: bad HTML entity
[ERROR] * P(e's label && e)
[ERROR] ^
[ERROR] /Users/daniel/ideaProjects/lbjava/lbjava/src/main/java/edu/illinois/cs/cogcomp/lbjava/learn/NaiveBayes.java:638: error: bad HTML entity
[ERROR] * P(e's label && e)
[ERROR] ^

这是完整的评论:
    /**
* Takes the dot product of this vector with the given vector, using the specified default
* weight when encountering a feature that is not yet present in this vector. Here, weights
* are taken as <i>log(feature count / prior count)</i>. The output of this method is
* related to the empirical probability of the example <i>e</i> as follows: <br>
* <br>
*
* <i>exp(dot(e)) / (sum of all labels' prior counts)) =</i><br>
* P(e's label && e)
*
* @param exampleFeatures The example's array of feature indices.
* @param exampleValues The example's array of feature values.
* @param defaultW The default weight.
* @return The computed dot product.
**/

任何想法可能导致此错误?我该如何解决?

注意:我不想禁用 doclint ;相反,我想通过评论解决问题。

最佳答案

你需要转义一些符号

&& 应输入为 &amp;&amp;如果你想渲染为 &&

关于Javadoc:如何修复: "bad HTML entity"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38111814/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com