try new spacy model

    0

    1

    aryehgigi

    Herniation -- Sciatica due to a Sciatica due to Herniation -- Sciatica

    import spacy
    
    import spacy
    
    nlp = spacy.load("/output/..")
    
    def try_sent(text):
      d = nlp(text)
      for t in d:
        print(f"{t.head.text} --({t.dep_})--> {t.text},\t {t.ent_type_}")
    
    try_sent("a Sciatica due to Herniation")
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.