Search code examples
pythonnlp

How to get verb forms of a verb in Spanish language in Python?


I am working on a project where I have to plug in verb forms of different Spanish verbs into a text. Is there any library that will allow me to do this? Or is there any CSV file or pdf which I can read into my code and get the verb forms from there? Any help would be appreciated, thanks.


Solution

  • You could try and use this as your csv data.

    You would have to load the csv file and access it using something like pandas.

    import pandas as pd
    
    filename = "file.csv"  # filepath here
    
    df = pd.read_csv(filename)
    

    You can read more about pandas.