Easily create semantic graphs from text using SentenceTransformers
Project description
SentenceGraph
Install
pip install SentenceGraph
How to use
Fill me in please! Don’t forget code examples:
from SentenceGraph.core import SentenceGraph, Format
sentenceGraph = SentenceGraph()
sentences = ['This framework generates embeddings for each input sentence',
'Sentences are passed as a list of string.',
'The quick brown fox jumps over the lazy dog.']
sim_graph = sentenceGraph.createGraph(sentences)
sim_graph
You can also return a graph matrix in different formats.
sim_graph = sentenceGraph.createGraph(sentences, format=Format.Numpy)
sim_graph
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
SentenceGraph-0.0.3.tar.gz
(8.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SentenceGraph-0.0.3.tar.gz.
File metadata
- Download URL: SentenceGraph-0.0.3.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d8d64f15db1024a335eddb8be67c9514ac4fbbd6932f236f2676a8500122c90
|
|
| MD5 |
a3d6e26ceec0efa5ab04d900ff4c9940
|
|
| BLAKE2b-256 |
cf44c6686cc53da2f7c0cc788e34d11283965271f90b0a9117f5b1c5fb283137
|
File details
Details for the file SentenceGraph-0.0.3-py3-none-any.whl.
File metadata
- Download URL: SentenceGraph-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db799e27aa137229022e9514be2a391d2c4045dfa74336cfa07ba7b76e8ddc6e
|
|
| MD5 |
89681519aae1b23adade1187df7a5fd4
|
|
| BLAKE2b-256 |
0116d10d90fbda4a1fa430c67238d87fc41f85d5d9e4f122188078baeef505fe
|