Skip to content
Snippets Groups Projects
Commit 9aed5097 authored by Maja Jabłońska's avatar Maja Jabłońska
Browse files

Remove unnecessary comments

parent 5d55691a
No related branches found
No related tags found
1 merge request!46Merge COMBO 3.0 into master
......@@ -67,19 +67,4 @@ class DatasetReader(IterableDataset):
raise NotImplementedError
def apply_token_indexers(self, instance: Instance) -> None:
"""
If `Instance`s created by this reader contain `TextField`s without `token_indexers`,
this method can be overriden to set the `token_indexers` of those fields.
E.g. if you have you have `"source"` `TextField`, you could implement this method like this:
```python
def apply_token_indexers(self, instance: Instance) -> None:
instance["source"].token_indexers = self._token_indexers
```
If your `TextField`s are wrapped in a `ListField`, you can access them via `field_list`.
E.g. if you had a `"source"` field of `ListField[TextField]` objects, you could:
```python
for text_field in instance["source"].field_list:
text_field.token_indexers = self._token_indexers
```
"""
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment