New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

text2vec

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text2vec - pypi Package Compare versions

Comparing version
1.3.7
to
1.3.8
+1
-1
PKG-INFO
Metadata-Version: 2.4
Name: text2vec
Version: 1.3.7
Version: 1.3.8
Summary: Text to vector Tool, encode text

@@ -5,0 +5,0 @@ Home-page: https://github.com/shibing624/text2vec

Metadata-Version: 2.4
Name: text2vec
Version: 1.3.7
Version: 1.3.8
Summary: Text to vector Tool, encode text

@@ -5,0 +5,0 @@ Home-page: https://github.com/shibing624/text2vec

@@ -208,3 +208,6 @@ # -*- coding: utf-8 -*-

# Convert to numpy/cpu immediately to free GPU memory
if convert_to_numpy:
embeddings = embeddings.cpu().numpy()
elif convert_to_tensor:
embeddings = embeddings.cpu()

@@ -216,3 +219,3 @@ all_embeddings.extend(embeddings)

elif convert_to_numpy:
all_embeddings = np.asarray([emb.numpy() for emb in all_embeddings])
all_embeddings = np.asarray(all_embeddings)

@@ -219,0 +222,0 @@ if input_is_string:

@@ -7,2 +7,2 @@ # -*- coding: utf-8 -*-

__version__ = '1.3.7'
__version__ = '1.3.8'