Skip to content

Commit

Permalink
Merge pull request #64 from findsimilar/release2.0
Browse files Browse the repository at this point in the history
Release2.0
  • Loading branch information
quillcraftsman authored Nov 10, 2023
2 parents ecd9e4c + 07938ce commit 59b65e4
Show file tree
Hide file tree
Showing 37 changed files with 47 additions and 1,016 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,18 @@ from find_similar import find_similar
texts = ['one two', 'two three', 'three four']

text_to_compare = 'one four'
result = find_similar(text_to_compare, texts, count=10)
for item in result:
print(item.text)
print(item.cos)
find_similar(text_to_compare, texts, count=10)
```

### More examples in [Full Documentation][documentation_path]
```commandline
[TokenText(text="one two", len(tokens)=2, cos=0.5), TokenText(text="three four", len(tokens)=2, cos=0.5), TokenText(text="two three", len(tokens)=2, cos=0)]
```

- The result is the list of `TokenText` instances ordering by `cos`
- `cos` is the mark of texts similarity

### See more examples in [Full Documentation][documentation_path]
### See the demonstration and mini tutorial in the [Demo project](http://demo.findsimilar.org/)

## Contributing

Expand Down
Empty file removed analytics/__init__.py
Empty file.
43 changes: 0 additions & 43 deletions analytics/db_functions.py

This file was deleted.

107 changes: 0 additions & 107 deletions analytics/functions.py

This file was deleted.

17 changes: 0 additions & 17 deletions analytics/models.py

This file was deleted.

Empty file removed data/__init__.py
Empty file.
70 changes: 0 additions & 70 deletions data/data_functions.py

This file was deleted.

27 changes: 0 additions & 27 deletions data/data_settings.py

This file was deleted.

Empty file removed database/__init__.py
Empty file.
Loading

0 comments on commit 59b65e4

Please sign in to comment.