Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,11 +4,11 @@ import jraph
|
|
4 |
import jax.numpy as jnp
|
5 |
from datasets import load_dataset
|
6 |
import spacy
|
|
|
7 |
|
8 |
dataset = load_dataset("gigant/tib_transcripts")
|
9 |
|
10 |
-
|
11 |
-
nlp = spacy.load("en_core_web_sm")
|
12 |
|
13 |
def dependency_parser(sentences):
|
14 |
return [nlp(sentence) for sentence in sentences]
|
|
|
4 |
import jax.numpy as jnp
|
5 |
from datasets import load_dataset
|
6 |
import spacy
|
7 |
+
import en_core_web_sm
|
8 |
|
9 |
dataset = load_dataset("gigant/tib_transcripts")
|
10 |
|
11 |
+
nlp = en_core_web_sm.load()
|
|
|
12 |
|
13 |
def dependency_parser(sentences):
|
14 |
return [nlp(sentence) for sentence in sentences]
|