How can I extract which Python lines are used when running a Python script?

  Kiến thức lập trình

Example: I have this Python script:

# pip install transformers
from transformers import AutoModelForTokenClassification, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('huawei-noah/TinyBERT_General_4L_312D')
tokenized_inputs = people_tagger_tokenizer(tokens, is_split_into_words=True, return_tensors="pt")
print(tokenized_inputs)

How can I automatically or semi-automatically extract which Python lines are used when running this Python script?

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT