Skip to content

Commit

Permalink
re error with latest numpy version fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
HashamUlHaq committed Aug 29, 2023
1 parent 3685a48 commit a6c5a6a
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/lib/sparknlp_display/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4
5.0
2 changes: 1 addition & 1 deletion build/lib/sparknlp_display/relation_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def __gen_graph(self, rdf, selected_text, exclude_relations, show_relations):
relation_coordinates.append((d_key2, d_key1, row.result))

relation_distances = np.array(relation_distances)
relation_coordinates = np.array(relation_coordinates)
relation_coordinates = np.array(relation_coordinates, dtype=object)
temp_ind = np.argsort(relation_distances)
relation_distances = relation_distances[temp_ind]
relation_coordinates = relation_coordinates[temp_ind]
Expand Down
Binary file removed dist/spark-nlp-display-4.4.tar.gz
Binary file not shown.
Binary file added dist/spark-nlp-display-5.0.tar.gz
Binary file not shown.
Binary file not shown.
6 changes: 1 addition & 5 deletions spark_nlp_display.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Metadata-Version: 2.1
Name: spark-nlp-display
Version: 4.4
Version: 5.0
Summary: Visualization package for Spark NLP
Home-page: http://nlp.johnsnowlabs.com
Author: John Snow Labs
Author-email: john@johnsnowlabs.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 2
Classifier: License :: OSI Approved :: Apache Software License
Expand Down Expand Up @@ -178,5 +176,3 @@ assertion_vis.set_label_colors({'TREATMENT':'#008080', 'problem':'#800080'}) #se
```

![title](https://raw.githubusercontent.com/JohnSnowLabs/spark-nlp-display/main/assets/assertion_viz.png)


2 changes: 1 addition & 1 deletion sparknlp_display/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4
5.0
2 changes: 1 addition & 1 deletion sparknlp_display/relation_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def __gen_graph(self, rdf, selected_text, exclude_relations, show_relations):
relation_coordinates.append((d_key2, d_key1, row.result))

relation_distances = np.array(relation_distances)
relation_coordinates = np.array(relation_coordinates)
relation_coordinates = np.array(relation_coordinates, dtype=object)
temp_ind = np.argsort(relation_distances)
relation_distances = relation_distances[temp_ind]
relation_coordinates = relation_coordinates[temp_ind]
Expand Down

0 comments on commit a6c5a6a

Please sign in to comment.