Skip to content

Definition of coherence #11

@notiho

Description

@notiho

In the function coherence, shouldn't it be for (l in 1:(m - 1)) instead of for (l in 1:(top_n_tokens - 1))? Otherwise, you are counting some but not all of the pairs of words twice. This is also the definition in Mimno et. al. 2011, p. 265.

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