Javadoc:如何修复:“错误的HTML实体”错误

时间:2016-06-29 23:43:46

标签: javadoc

我收到此错误:

[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;相反,我想用评论来解决问题。

1 个答案:

答案 0 :(得分:12)

你需要逃避一些符号

&安培;&安培;如果您要呈现为&amp;&amp;

,则应输入&&