File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "cells" : [
3
+ {
4
+ "cell_type" : " code" ,
5
+ "execution_count" : 5 ,
6
+ "metadata" : {},
7
+ "outputs" : [],
8
+ "source" : [
9
+ " import spacy"
10
+ ]
11
+ },
12
+ {
13
+ "cell_type" : " code" ,
14
+ "execution_count" : 8 ,
15
+ "metadata" : {},
16
+ "outputs" : [],
17
+ "source" : [
18
+ " #spacy pipeline\n " ,
19
+ " nlp = spacy.load('en_core_web_md')"
20
+ ]
21
+ },
22
+ {
23
+ "cell_type" : " code" ,
24
+ "execution_count" : 17 ,
25
+ "metadata" : {},
26
+ "outputs" : [
27
+ {
28
+ "name" : " stdout" ,
29
+ "output_type" : " stream" ,
30
+ "text" : [
31
+ " Python\n " ,
32
+ " is\n " ,
33
+ " n't\n " ,
34
+ " just\n " ,
35
+ " a\n " ,
36
+ " language\n " ,
37
+ " .\n " ,
38
+ " It\n " ,
39
+ " 's\n " ,
40
+ " a\n " ,
41
+ " framework\n " ,
42
+ " !\n "
43
+ ]
44
+ }
45
+ ],
46
+ "source" : [
47
+ " doc = nlp(\" Python isn't just a language. It's a framework!\" )\n " ,
48
+ " for token in doc:\n " ,
49
+ " print(token)"
50
+ ]
51
+ },
52
+ {
53
+ "cell_type" : " code" ,
54
+ "execution_count" : null ,
55
+ "metadata" : {},
56
+ "outputs" : [],
57
+ "source" : []
58
+ }
59
+ ],
60
+ "metadata" : {
61
+ "kernelspec" : {
62
+ "display_name" : " torch" ,
63
+ "language" : " python" ,
64
+ "name" : " python3"
65
+ },
66
+ "language_info" : {
67
+ "codemirror_mode" : {
68
+ "name" : " ipython" ,
69
+ "version" : 3
70
+ },
71
+ "file_extension" : " .py" ,
72
+ "mimetype" : " text/x-python" ,
73
+ "name" : " python" ,
74
+ "nbconvert_exporter" : " python" ,
75
+ "pygments_lexer" : " ipython3" ,
76
+ "version" : " 3.11.9"
77
+ }
78
+ },
79
+ "nbformat" : 4 ,
80
+ "nbformat_minor" : 2
81
+ }
You can’t perform that action at this time.
0 commit comments