nlpodyssey/gotokenizers

View on GitHub
models/bpemodel/mergemap.go

Summary

Maintainability
A
45 mins
Test Coverage

Function MergeMapFromFile has 7 return statements (exceeds 4 allowed).
Open

func MergeMapFromFile(
    filename string,
    vocab *vocabulary.Vocabulary,
    prefixLength int,
) (m *MergeMap, err error) {
Severity: Major
Found in models/bpemodel/mergemap.go - About 45 mins to fix

    exported method MergeMap.Set should have comment or be unexported
    Open

    func (m *MergeMap) Set(firstID, secondID int, v MergeValue) {
    Severity: Minor
    Found in models/bpemodel/mergemap.go by golint

    There are no issues that match your filters.

    Category
    Status