Showing 92 of 92 total issues
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
// Copyright (c) 2020, NLP Odyssey Authors. All rights reserved.
- Exclude checks
exported type InvertedPattern should have comment or be unexported Open
Open
type InvertedPattern struct {
- Exclude checks
exported type BytesToRuneOffsetConverter should have comment or be unexported Open
Open
type BytesToRuneOffsetConverter struct {
- Exclude checks
exported type RuneSplitPattern should have comment or be unexported Open
Open
type RuneSplitPattern struct {
- Exclude checks
exported method RuneSplitPattern.FindMatches should have comment or be unexported Open
Open
func (sp *RuneSplitPattern) FindMatches(s string) ([]Capture, error) {
- Exclude checks
exported function NewBytesToRuneOffsetConverter should have comment or be unexported Open
Open
func NewBytesToRuneOffsetConverter(sequence string) *BytesToRuneOffsetConverter {
- Exclude checks
exported function NewDefault should have comment or be unexported Open
Open
func NewDefault() *WordPieceModel {
- Exclude checks
exported method OriginalRange.End should have comment or be unexported Open
Open
func (r OriginalRange) End() int {
- Exclude checks
exported method Regexp2SplitPattern.FindMatches should have comment or be unexported Open
Open
func (sp *Regexp2SplitPattern) FindMatches(s string) ([]Capture, error) {
- Exclude checks
exported var ErrUnknownTokenOutOfVocabulary should have comment or be unexported Open
Open
var ErrUnknownTokenOutOfVocabulary = fmt.Errorf("the provided unk token is out of vocabulary")
- Exclude checks
exported method WordCache.Set should have comment or be unexported Open
Open
func (c *WordCache) Set(key string, values *Word) {
- Exclude checks
exported method WordCache.GetValues should have comment or be unexported Open
Open
func (c *WordCache) GetValues(keys []string) []*Word {
- Exclude checks
exported method WordMergeHeap.Push should have comment or be unexported Open
Open
func (h *WordMergeHeap) Push(x interface{}) {
- Exclude checks
exported method WordMergeHeap.Pop should have comment or be unexported Open
Open
func (h *WordMergeHeap) Pop() interface{} {
- Exclude checks
exported method WordPieceModel.Tokenize should have comment or be unexported Open
Open
func (m *WordPieceModel) Tokenize(sequence string) ([]models.Token, error) {
- Exclude checks
exported function FromString should have comment or be unexported Open
Open
func FromString(s string) *PreTokenizedString {
- Exclude checks
exported type Regexp2SplitPattern should have comment or be unexported Open
Open
type Regexp2SplitPattern struct {
- Exclude checks
exported type RegexpSplitPattern should have comment or be unexported Open
Open
type RegexpSplitPattern struct {
- Exclude checks
exported var ErrUnknownTokenOutOfVocabulary should have comment or be unexported Open
Open
var ErrUnknownTokenOutOfVocabulary = fmt.Errorf("the provided unk token is out of vocabulary")
- Exclude checks
exported method OriginalRange.Start should have comment or be unexported Open
Open
func (r OriginalRange) Start() int {
- Exclude checks