Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't not use wordpieces in Spacy 3.7.5 with en_core_web_trf #13543

Open
origi6615 opened this issue Jun 23, 2024 · 0 comments
Open

can't not use wordpieces in Spacy 3.7.5 with en_core_web_trf #13543

origi6615 opened this issue Jun 23, 2024 · 0 comments

Comments

@origi6615
Copy link

When I run

import spacy
nlp = spacy.load("en_core_web_trf")
utt8 = nlp("It went there unwillingly.")
utt8._.trf_data.wordpieces

it meet error, so I run

utt8 = utt8._.trf_data
print(dir(utt8))
['annotations', 'class', 'dataclass_fields', 'dataclass_params', 'delattr', 'dict', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'getstate', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'match_args', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', 'all_hidden_layer_states', 'all_outputs', 'embedding_layer', 'from_dict', 'last_hidden_layer_state', 'last_layer_only', 'num_outputs', 'to_dict']

so which one I can choose to replace wordpieces in this 3.7.x version, thank you!

How to reproduce the behaviour

Your Environment

  • Operating System:
  • Python Version Used:
  • spaCy Version Used:
  • Environment Information:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant