Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Bug fix for "RoBERTaTensorizer object has no attribute is_input" #1334

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pytext/contrib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# What is 'contrib' directory?

Code in 'contrib' directory is considered experimental. If it's proved to be useful, we may incorporate it into the core PyText structure. The code review turnaround time for changes in 'contrib' is expected to be shorter than changes in the core PyText structure.

'contrib' is organized by projects. We recommend the following directory structure to prevent file collisions:

```
contrib/
my_project/ - project name
common/ - mimic the core PyText structure
config/
data/
...
```
1 change: 1 addition & 0 deletions pytext/data/bert_tensorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def __init__(
max_seq_len: int = Config.max_seq_len,
base_tokenizer: Tokenizer = None,
) -> None:
super().__init__()
self.columns = columns
self.vocab = vocab
self.tokenizer = tokenizer
Expand Down