dipta007's Second 🧠
  • GitHub

    main

    • Home

    Literature Notes

    • Advanced NLP With Scipy
    • Deep Learning By Ian Goodfellow
    • How To Read A Paper
    • How To Write A Paper

    Templates

    • Literature Notes
    • Permanent Notes

    Zettelkasten

    • Activation-Functions
    • Conditionally-Independent-Joint-Distribution
    • Contrastive-Learning
    • Determinant
    • Diagonal-Matrix
    • Doing-Literature-Review
    • Eigendecomposition
    • Eigenvalue-Eigenvector
    • Eucledian-Norm
    • Frobenius-Norm
    • Fully-Independent-Join-Distribution
    • Fully-Joint-Joint-Distribution
    • How-To-Read-Paper
    • Identity-Matrix
    • Joint-Distribuition
    • Jupyter-Notebook-On-Server
    • Lp-Norm
    • Matrices
    • Max-Norm
    • Norm
    • Orthogonal-Matrix
    • Orthonormal-Vector
    • Probability-Density-Function
    • Probability-Distribution
    • Probability-Mass-Function
    • Random-Variable
    • Scalar
    • Sigmoid-Function
    • Singular-Value-Decomposition (Svd)
    • Sources-Of-Uncertainity
    • Spacy-Doc-Object
    • Spacy-Doc-Span-Token
    • Spacy-Explanation-Of-Labels
    • Spacy-Matcher
    • Spacy-Named-Entities
    • Spacy-Operator-Quantifier
    • Spacy-Pattern
    • Spacy-Pipeline
    • Spacy-Pos
    • Spacy-Semantic-Similarity
    • Spacy-Syntactic-Dependency
    • Trace-Operator
    • Transformer-Timeline
    • Unit-Vector
    • Untitled
    • Vector

    On this page

    • spacy-pattern
    • References

    Spacy-Pattern

    05-10-2022 || 00:47
    Tags: #spacy #nlp

    spacy-pattern

    Pattern can be a lot of things including LOWER, IS_DIGIT, IS_PUNCT, LEMMA, POS

    Pattern list should be matched perfectly in order in the array.

    pattern = [
       {"LEMMA": "love", "POS": "VERB"},
       {"POS": "NOUN"}
    ]
    

    The above pattern can be matched with loved dogs, love cat but not just with love, cat.

    Pattern can be more modifed using spacy-operator-quantifier


    References

    • Advanced NLP with Scipy