You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -860,7 +858,7 @@ This experiment consisted of training a Name Entity Recognition model (token-lev
860
858
We used the Spark NLPclass`MedicalNer`and it's method `Approach()` as described in the [documentation](https://nlp.johnsnowlabs.com/docs/en/licensed_annotators#medicalner).
861
859
862
860
The pipeline looks as follows:
863
-

861
+

@@ -950,11 +948,11 @@ You will experiment big GPU improvements in the following cases:
950
948
951
949
### MultiGPU Inference on Databricks
952
950
In this part, we will give you an idea on how to choose appropriate hardware specifications for Databricks. Here is a few different hardwares, their prices, as well as their performance:

958
956
959
957
Figure above clearly shows us that GPU should be the first option of ours.
960
958
@@ -1151,4 +1149,4 @@ These findings unequivocally affirm Spark NLP's superiority for NER extraction t
1151
1149
1152
1150
*SpaCy with pandas UDFs*: Development might be more straightforward since you're essentially working with Python functions. However, maintaining optimal performance with larger datasets and ensuring scalability can be tricky.
Copy file name to clipboardExpand all lines: docs/en/display.md
+13-23Lines changed: 13 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,7 @@ The ability to quickly visualize the entities/relations/assertion statuses, etc.
27
27
28
28
The visualisation classes work with the outputs returned by both Pipeline.transform() function and LightPipeline.fullAnnotate().
29
29
30
-
31
-
<br/>
30
+
</div><divclass="h3-box"markdown="1">
32
31
33
32
### Install Spark NLP Display
34
33
@@ -37,10 +36,11 @@ You can install the Spark NLP Display library via pip by using:
37
36
```bash
38
37
pip install spark-nlp-display
39
38
```
40
-
<br/>
41
39
42
40
A complete guideline on how to use the Spark NLP Display library is available <ahref="https://github.com/JohnSnowLabs/spark-nlp-display/blob/main/tutorials/Spark_NLP_Display.ipynb">here</a>.
43
41
42
+
</div><divclass="h3-box"markdown="1">
43
+
44
44
### Visualize a dependency tree
45
45
46
46
For visualizing a dependency trees generated with <ahref="https://nlp.johnsnowlabs.com/docs/en/annotators#dependency-parsers">DependencyParserApproach</a> you can use the following code.
@@ -57,14 +57,12 @@ dependency_vis.display(pipeline_result[0], #should be the results of a single ex
57
57
dependency_type_col = 'dependency_type'#specify the dependency type column
58
58
)
59
59
```
60
-
<br/>
61
60
62
61
The following image gives an example of html output that is obtained for a test sentence:
63
62
64
-
<imgclass="image image--xl"src="/assets/images/dependency tree viz.png"style="width:70%; align:center; box-shadow: 03px6pxrgba(0,0,0,0.16), 03px6pxrgba(0,0,0,0.23);"/>
65
-
63
+

66
64
67
-
<br/>
65
+
</div><divclass="h3-box"markdown="1">
68
66
69
67
### Visualize extracted named entities
70
68
@@ -86,9 +84,9 @@ ner_vis.set_label_colors({'LOC':'#800080', 'PER':'#77b5fe'}) #set label colors b
86
84
```
87
85
The following image gives an example of html output that is obtained for a couple of test sentences:
0 commit comments