Skip to content

Commit

Permalink
chore: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ndabAP committed Nov 5, 2022
1 parent 34fe0f1 commit 28bdeae
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 28 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ characters in entities due its nature of tokenization.
## Installation

```bash
$ go get github.com/ndabAP/assocentity/v9
$ go get github.com/ndabAP/assocentity/v10
```

## Prerequisites
Expand All @@ -30,9 +30,9 @@ import (
"context"
"fmt"

"github.com/ndabAP/assocentity/v9"
"github.com/ndabAP/assocentity/v9/nlp"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10"
"github.com/ndabAP/assocentity/v10/nlp"
"github.com/ndabAP/assocentity/v10/tokenize"
)

const credentialsFile = "google_nlp_service_account.json"
Expand Down Expand Up @@ -223,7 +223,7 @@ expects the text as stdin and accepts the following flags:
Example:

```bash
echo "Relax, Max. You're a nice guy." | ./bin/assocentity_linux_amd64_v9.0.1-7-gdfeb0f1-dirty -gog-svc-loc=/home/max/.config/assocentity/google-service.json -entities="Max Payne,Payne,Max"
echo "Relax, Max. You're a nice guy." | ./bin/assocentity_linux_amd64_v10.0.1-7-gdfeb0f1-dirty -gog-svc-loc=/home/max/.config/assocentity/google-service.json -entities="Max Payne,Payne,Max"
```

The application writes the result as CSV formatted `string` to stdout.
Expand Down
6 changes: 3 additions & 3 deletions assocentity.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"math"

"github.com/ndabAP/assocentity/v9/internal/comp"
"github.com/ndabAP/assocentity/v9/internal/iterator"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/internal/comp"
"github.com/ndabAP/assocentity/v10/internal/iterator"
"github.com/ndabAP/assocentity/v10/tokenize"
)

// Do returns the average distance from entities to a text consisting of token
Expand Down
6 changes: 3 additions & 3 deletions assocentity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"

"github.com/joho/godotenv"
"github.com/ndabAP/assocentity/v9"
"github.com/ndabAP/assocentity/v9/nlp"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10"
"github.com/ndabAP/assocentity/v10/nlp"
"github.com/ndabAP/assocentity/v10/tokenize"
)

func TestDoWired(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"os"
"strings"

"github.com/ndabAP/assocentity/v9"
"github.com/ndabAP/assocentity/v9/nlp"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10"
"github.com/ndabAP/assocentity/v10/nlp"
"github.com/ndabAP/assocentity/v10/tokenize"
)

var logger = log.Default()
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/ndabAP/assocentity/v9
module github.com/ndabAP/assocentity/v10

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions internal/comp/comp.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package comp

import (
"github.com/ndabAP/assocentity/v9/internal/iterator"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/internal/iterator"
"github.com/ndabAP/assocentity/v10/tokenize"
)

type Direction int
Expand Down
6 changes: 3 additions & 3 deletions internal/comp/comp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"reflect"
"testing"

"github.com/ndabAP/assocentity/v9/internal/comp"
"github.com/ndabAP/assocentity/v9/internal/iterator"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/internal/comp"
"github.com/ndabAP/assocentity/v10/internal/iterator"
"github.com/ndabAP/assocentity/v10/tokenize"
)

func TestTextWithEntity(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/iterator/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package iterator_test
import (
"testing"

"github.com/ndabAP/assocentity/v9/internal/iterator"
"github.com/ndabAP/assocentity/v10/internal/iterator"
)

var testElems = []int{1, 2, 3, 3, 1, 5, 6}
Expand Down
6 changes: 3 additions & 3 deletions nlp/pos_determ.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package nlp

import (
"github.com/ndabAP/assocentity/v9/internal/comp"
"github.com/ndabAP/assocentity/v9/internal/iterator"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/internal/comp"
"github.com/ndabAP/assocentity/v10/internal/iterator"
"github.com/ndabAP/assocentity/v10/tokenize"
)

// NLPPoSDetermer represents the default part of speech determinator
Expand Down
2 changes: 1 addition & 1 deletion nlp/pos_determ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/tokenize"
)

func TestNLPPoSDetermer_DetermPoS(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion nlp/tokenize.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

language "cloud.google.com/go/language/apiv1"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/tokenize"
"google.golang.org/api/option"
languagepb "google.golang.org/genproto/googleapis/cloud/language/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions nlp/tokenize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"

"github.com/joho/godotenv"
"github.com/ndabAP/assocentity/v9/nlp"
"github.com/ndabAP/assocentity/v9/tokenize"
"github.com/ndabAP/assocentity/v10/nlp"
"github.com/ndabAP/assocentity/v10/tokenize"
)

func TestTokenize(t *testing.T) {
Expand Down

0 comments on commit 28bdeae

Please sign in to comment.