Skip to content

Commit

Permalink
Merge pull request #383 from rbroc/bertLM
Browse files Browse the repository at this point in the history
add bert base class and restructure encoding extractor
  • Loading branch information
adelavega committed Apr 27, 2020
2 parents b7acf8b + 71d9b7c commit 63e668a
Show file tree
Hide file tree
Showing 5 changed files with 597 additions and 154 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -48,8 +48,8 @@ before_script:
- python -m pliers.support.download
- python -m spacy download en_core_web_sm
script:
- py.test pliers/tests/test_* pliers/tests/converters pliers/tests/filters --cov=pliers --cov-report= -m "not requires_payment" -W ignore::UserWarning
- py.test pliers/tests/extractors --cov=pliers --cov-report= -m "not requires_payment" --cov-append -W ignore::UserWarning
- py.test pliers/tests/test_* pliers/tests/converters pliers/tests/filters --cov=pliers --cov-report= -m "not requires_payment" -W ignore::UserWarning
- py.test pliers/tests/extractors --cov=pliers --cov-report= -m "not requires_payment" --cov-append -W ignore::UserWarning
after_success:
- coveralls
before_cache:
Expand Down
9 changes: 7 additions & 2 deletions pliers/extractors/__init__.py
Expand Up @@ -64,7 +64,9 @@
NumUniqueWordsExtractor, PartOfSpeechExtractor,
WordEmbeddingExtractor, TextVectorizerExtractor,
VADERSentimentExtractor, SpaCyExtractor,
WordCounterExtractor, PretrainedBertEncodingExtractor)
WordCounterExtractor, BertExtractor,
BertSequenceEncodingExtractor, BertLMExtractor,
BertSentimentExtractor)
from .video import (FarnebackOpticalFlowExtractor)

__all__ = [
Expand Down Expand Up @@ -139,7 +141,10 @@
'BeatTrackExtractor',
'HarmonicExtractor',
'PercussiveExtractor',
'BertExtractor',
'BertSequenceEncodingExtractor',
'BertLMExtractor',
'BertSentimentExtractor',
'AudiosetLabelExtractor',
'PretrainedBertEncodingExtractor',
'WordCounterExtractor'
]

0 comments on commit 63e668a

Please sign in to comment.