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

Javadoc: How to fix: "bad HTML entity" 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] ^
[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;