Skip to content

Commit

Permalink
Restore tests for mention_extractor.get_mentions(docs) and candidate_…
Browse files Browse the repository at this point in the history
…extractor.get_candidates(docs)
  • Loading branch information
Hiromu Hota committed Jun 4, 2020
1 parent 02f35e4 commit c30139f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ def test_e2e():
mention_extractor.apply(docs, parallelism=PARALLEL)

assert len(mention_extractor.get_mentions()) == 3
assert len(mention_extractor.get_mentions(docs)) == 3

# Candidate Extraction
candidate_extractor = CandidateExtractor(
Expand All @@ -177,6 +178,7 @@ def test_e2e():
)

assert len(train_cands) == 2
assert len(candidate_extractor.get_candidates(docs)) == 2

# Featurization
featurizer = Featurizer(session, [PartTemp, PartVolt])
Expand Down

0 comments on commit c30139f

Please sign in to comment.