Metadata-Version: 2.1
Name: cqls
Version: 0.1.4
Summary: A parser for an often-used subset of Corpus Query Language
Home-page: http://github.com/liao961120/cqls
Author: Yongfu Liao
Author-email: liao961120@github.com
License: MIT
Description: # cqls
        
        Interpret Corpus Query Language as a list of queries in JSON format.
        
        
        ## Installation
        
        ```bash
        pip install cqls
        ```
        
        
        ## Usage
        
        ```python
        >>> import cqls
        >>> cql = '''
        ... "我" [pos="V."]+
        ... '''
        >>> cqls.parse(cql, default_attr="word", max_quant=5)
        [
            [{'match': {'word': ['我']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}], 
            [{'match': {'word': ['我']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}], 
            [{'match': {'word': ['我']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}], 
            [{'match': {'word': ['我']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}, {'match': {'pos': ['V.']}, 'not_match': {}}]
        ]
        ```
Platform: UNKNOWN
Description-Content-Type: text/markdown
