gigant commited on
Commit
94ef5cb
1 Parent(s): 755728a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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]