Skip to content

Commit

Permalink
fix: references
Browse files Browse the repository at this point in the history
  • Loading branch information
c-seeger committed Jul 24, 2024
1 parent 3b44145 commit fbe46e4
Show file tree
Hide file tree
Showing 80 changed files with 147 additions and 147 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Library for Top-k Approximate String Matching, autocomplete and spell checking.

[![Build Status](https://travis-ci.com/suggest-go/suggest.svg?branch=master)](https://travis-ci.com/suggest-go/suggest)
[![Go Report Card](https://goreportcard.com/badge/github.com/suggest-go/suggest)](https://goreportcard.com/report/github.com/suggest-go/suggest)
[![GoDoc](https://godoc.org/github.com/suggest-go/suggest?status.svg)](https://godoc.org/github.com/suggest-go/suggest)
[![Build Status](https://travis-ci.com/finalrep/suggest.svg?branch=master)](https://travis-ci.com/finalrep/suggest)
[![Go Report Card](https://goreportcard.com/badge/github.com/finalrep/suggest)](https://goreportcard.com/report/github.com/finalrep/suggest)
[![GoDoc](https://godoc.org/github.com/finalrep/suggest?status.svg)](https://godoc.org/github.com/finalrep/suggest)

The library was mostly inspired by
- http://www.chokkan.org/software/simstring/
Expand All @@ -15,13 +15,13 @@ The library was mostly inspired by

## Docs

See the [documentation](https://suggest-go.github.io/) with examples demo and API documentation.
See the [documentation](https://finalrep.github.io/) with examples demo and API documentation.

## Demo

#### Fuzzy string search in a dictionary

The [demo](https://suggest-go.github.io/docs/demo/suggest-cars.html) shows an approximate string search in a vehicle dictionary with more than 2k model names.
The [demo](https://finalrep.github.io/docs/demo/suggest-cars.html) shows an approximate string search in a vehicle dictionary with more than 2k model names.

You can also run it locally

Expand All @@ -42,7 +42,7 @@ $ docker run -p 8080:8080 -v $(pwd)/pkg/suggest/testdata:/data/testdata suggest
#### Spellchecker

Spellchecker recognizes a misspelled word based on the context of the surrounding words.
In order to run a spellchecker [demo](https://suggest-go.github.io/docs/demo/spellchecker.html), please do the next
In order to run a spellchecker [demo](https://finalrep.github.io/docs/demo/spellchecker.html), please do the next

* Download an English [language model](https://app.box.com/s/ze53gtxetnqkj5pln7aogge1xo2ca3s0) built on [Blog Authorship Corpus](http://u.cs.biu.ac.il/~koppel/BlogCorpus.htm)
* Extract downloaded language model and perform
Expand Down
4 changes: 2 additions & 2 deletions cmd/language-model/cmd/build-lm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cmd
import (
"fmt"
"github.com/spf13/cobra"
"github.com/suggest-go/suggest/pkg/lm"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/store"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/language-model/cmd/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"github.com/spf13/cobra"
"github.com/suggest-go/suggest/pkg/lm"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/store"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/language-model/cmd/ngram-count.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package cmd
import (
"bufio"
"fmt"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
"os"

"github.com/spf13/cobra"
"github.com/suggest-go/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/lm"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/language-model/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/suggest-go/suggest/cmd/language-model/cmd"
"github.com/finalrep/suggest/cmd/language-model/cmd"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/spellchecker/cmd/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"bufio"
"fmt"
"github.com/spf13/cobra"
"github.com/suggest-go/suggest/internal/spellchecker/dep"
"github.com/finalrep/suggest/internal/spellchecker/dep"
"os"
"time"

"github.com/suggest-go/suggest/pkg/lm"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/suggest"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/spellchecker/cmd/spellchecker.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/suggest-go/suggest/internal/spellchecker/api"
"github.com/finalrep/suggest/internal/spellchecker/api"
"log"

"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/spellchecker/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/suggest-go/suggest/cmd/spellchecker/cmd"
"github.com/finalrep/suggest/cmd/spellchecker/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/suggest/cmd/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"time"

"github.com/suggest-go/suggest/pkg/metric"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/metric"
"github.com/finalrep/suggest/pkg/suggest"

"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/suggest/cmd/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"syscall"
"time"

"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"

"github.com/spf13/cobra"

"github.com/suggest-go/suggest/pkg/dictionary"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/dictionary"
"github.com/finalrep/suggest/pkg/suggest"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggest/cmd/suggest.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/suggest-go/suggest/internal/suggest/api"
"github.com/finalrep/suggest/internal/suggest/api"
"log"

"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/suggest/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/suggest-go/suggest/cmd/suggest/cmd"
"github.com/finalrep/suggest/cmd/suggest/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/suggest-go/suggest
module github.com/finalrep/suggest

go 1.13

Expand Down
8 changes: 4 additions & 4 deletions internal/spellchecker/api/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (

"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/suggest-go/suggest/internal/http"
"github.com/suggest-go/suggest/internal/spellchecker/dep"
"github.com/suggest-go/suggest/pkg/lm"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/internal/http"
"github.com/finalrep/suggest/internal/spellchecker/dep"
"github.com/finalrep/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/suggest"
)

// App is our application
Expand Down
4 changes: 2 additions & 2 deletions internal/spellchecker/api/predict_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"net/http"

httputil "github.com/suggest-go/suggest/internal/http"
"github.com/suggest-go/suggest/pkg/spellchecker"
httputil "github.com/finalrep/suggest/internal/http"
"github.com/finalrep/suggest/pkg/spellchecker"

"github.com/gorilla/mux"
)
Expand Down
10 changes: 5 additions & 5 deletions internal/spellchecker/dep/spellchecker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package dep

import (
"fmt"
"github.com/suggest-go/suggest/pkg/dictionary"
"github.com/suggest-go/suggest/pkg/lm"
"github.com/suggest-go/suggest/pkg/spellchecker"
"github.com/suggest-go/suggest/pkg/store"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/dictionary"
"github.com/finalrep/suggest/pkg/lm"
"github.com/finalrep/suggest/pkg/spellchecker"
"github.com/finalrep/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/suggest"
)

// BuildSpellChecker builds spellchecker for the provided config and indexDescription
Expand Down
4 changes: 2 additions & 2 deletions internal/suggest/api/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"context"
"fmt"
"github.com/suggest-go/suggest/internal/http"
"github.com/finalrep/suggest/internal/http"
"io/ioutil"
"log"
"os"
Expand All @@ -14,7 +14,7 @@ import (

"github.com/gorilla/handlers"
"github.com/gorilla/mux"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/suggest"
)

// App is our application
Expand Down
4 changes: 2 additions & 2 deletions internal/suggest/api/autocomplete_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package api

import (
"encoding/json"
httputil "github.com/suggest-go/suggest/internal/http"
httputil "github.com/finalrep/suggest/internal/http"
"net/http"

"github.com/gorilla/mux"
"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/suggest"
)

// autocompleteHandler is responsible for query autocomplete
Expand Down
2 changes: 1 addition & 1 deletion internal/suggest/api/dict_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"net/http"

"github.com/suggest-go/suggest/pkg/suggest"
"github.com/finalrep/suggest/pkg/suggest"
)

// dictionaryHandler handles requests with dictionaries purpose
Expand Down
6 changes: 3 additions & 3 deletions internal/suggest/api/suggest_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"errors"
"github.com/gorilla/mux"
httputil "github.com/suggest-go/suggest/internal/http"
"github.com/suggest-go/suggest/pkg/metric"
"github.com/suggest-go/suggest/pkg/suggest"
httputil "github.com/finalrep/suggest/internal/http"
"github.com/finalrep/suggest/pkg/metric"
"github.com/finalrep/suggest/pkg/suggest"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/analysis/normalizer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package analysis

import (
"github.com/suggest-go/suggest/pkg/alphabet"
"github.com/finalrep/suggest/pkg/alphabet"
)

type normalizeFilter struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/analysis/stemmer_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package analysis

import (
snowball "github.com/snowballstem/snowball/go"
"github.com/suggest-go/suggest/pkg/analysis/en"
"github.com/suggest-go/suggest/pkg/analysis/ru"
"github.com/finalrep/suggest/pkg/analysis/en"
"github.com/finalrep/suggest/pkg/analysis/ru"
)

type stemmerFunc = func(env *snowball.Env) bool
Expand Down
2 changes: 1 addition & 1 deletion pkg/analysis/word_tokenizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package analysis
import (
"unicode/utf8"

"github.com/suggest-go/suggest/pkg/alphabet"
"github.com/finalrep/suggest/pkg/alphabet"
)

// NewWordTokenizer creates a new instance of Tokenizer
Expand Down
2 changes: 1 addition & 1 deletion pkg/analysis/word_tokenizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/suggest-go/suggest/pkg/alphabet"
"github.com/finalrep/suggest/pkg/alphabet"
)

func TestTokenize(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package compression

import (
"encoding/binary"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
"io"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package compression

import (
"github.com/RoaringBitmap/roaring"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
)

// BitmapEncoder returns new instance of bitmapEnc which compress the uint32 list with the roaring bitmap library
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/compression.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package compression holds the algorithms for compressing the list of sorted lists of integers
package compression

import "github.com/suggest-go/suggest/pkg/store"
import "github.com/finalrep/suggest/pkg/store"

// Encoder represents entity for encoding given posting list to byte array
type Encoder interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/compression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
)

func TestEncodeDecode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/skipping.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"errors"

"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/compression/varint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package compression
import (
"io"

"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
)

// VBEncoder returns new instance of vbEnc that encodes posting list using
Expand Down
2 changes: 1 addition & 1 deletion pkg/dictionary/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"

"github.com/alldroll/cdb"
"github.com/suggest-go/suggest/pkg/utils"
"github.com/finalrep/suggest/pkg/utils"
)

// OpenCDBDictionary opens a dictionary from cdb file
Expand Down
4 changes: 2 additions & 2 deletions pkg/index/bitmap_posting_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"

"github.com/RoaringBitmap/roaring"
"github.com/suggest-go/suggest/pkg/merger"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/merger"
"github.com/finalrep/suggest/pkg/store"
)

// bitmapPostingList is a bitmap PostingList implementation
Expand Down
4 changes: 2 additions & 2 deletions pkg/index/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"sync"

"github.com/suggest-go/suggest/pkg/compression"
"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/compression"
"github.com/finalrep/suggest/pkg/store"
)

const skippingGapSize = 64
Expand Down
2 changes: 1 addition & 1 deletion pkg/index/index_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"runtime"

"github.com/suggest-go/suggest/pkg/store"
"github.com/finalrep/suggest/pkg/store"
)

// Reader is an entity, providing access to a search index
Expand Down
Loading

0 comments on commit fbe46e4

Please sign in to comment.