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