Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
ophelielacroix committed Mar 26, 2021
1 parent cb18cce commit 18f0111
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions danlp/models/allennlp_models/coref/predictors/coref.py
@@ -1,11 +1,9 @@
from typing import List, Dict

from overrides import overrides
import numpy

from allennlp.common.util import JsonDict
from allennlp.data import DatasetReader, Instance
from allennlp.data.fields import ListField, SequenceLabelField
from allennlp.models import Model
from allennlp.predictors.predictor import Predictor

Expand Down
6 changes: 0 additions & 6 deletions examples/benchmarks/coreference_benchmarks.py
Expand Up @@ -15,12 +15,6 @@
num_sentences = len(testset)
num_tokens = sum([len(s) for s in testset])


for i, sent in enumerate(testset):
if len(sent)<8:
print(i, [t['form'] for t in sent], [t['coref_rel'] for t in sent])
exit()

def benchmark_xlmr_mdl():

from allennlp.data import DataLoader
Expand Down

0 comments on commit 18f0111

Please sign in to comment.