Skip to content

Example is not working #40

@bratao

Description

@bratao

Running the example in the latest version (0.3.0) :

from simstring.feature_extractor.word_ngram import WordNgramFeatureExtractor
from simstring.database.dict import DictDatabase

db = DictDatabase(WordNgramFeatureExtractor(2))
db.add('You are so cool.')

Fails with

Traceback (most recent call last):
  File "C:\Users\brata\AppData\Roaming\JetBrains\PyCharmCE2023.3\scratches\scratch_31.py", line 7, in <module>
    db.add('You are so cool.')
  File "simstring\database\dict.py", line 42, in add
TypeError: str object expected; got tuple[str, str]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions