Skip to content

Confused about the TF score when calculating CIDEr #66

@JJJYmmm

Description

@JJJYmmm

In the original paper, the TF is defined as blow.
image

But in the code, the denominator seems to be ignored.

vec[n][ngram] = float(term_freq)*(self.ref_len - df)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions