Closed wettera closed 2 years ago
Hello, thank you for the great work. I would like to finetune on my own dataset. But I am not familiar with dependency parsing. I would be very grateful if you can provide the corresponding code for extracting the root of the sentence using Spacy.
I find the corresponding code in scripts/utils/text.py def get_root_and_nouns(text: str, lazy=True).
scripts/utils/text.py
def get_root_and_nouns(text: str, lazy=True)
Hello, thank you for the great work. I would like to finetune on my own dataset. But I am not familiar with dependency parsing. I would be very grateful if you can provide the corresponding code for extracting the root of the sentence using Spacy.