Skip to content

Train LM with pip installed kenlm  #447

@bchinnari

Description

@bchinnari

Hello,

I am getting errors installing kenLM, on macOS, with the official git repo.
However , I am able to install kenLM quickly using pip.
Is there a way to train an LM by importing kenLM library in python.

import kenlm 

I saw kenlm.Model(), kenlm.LM(). But is there a way to get an arpa model out given some text using kenlm library in python.

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