How to use the cython.combinator.RuleType function in Cython

To help you get started, we’ve selected a few Cython examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self, left, right, slash):
        super(ForwardComposition, self).__init__(RuleType.FC)
        self.left_slash = left
        self.right_slash = right
        self.result_slash = slash
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self):
        super(BackwardApplication, self).__init__(RuleType.BA)
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self):
        super(UnaryRule, self).__init__(RuleType.UNARY)
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self):
        super(RemovePunctuationLeft, self).__init__(RuleType.LP)
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self, left, right, result, head_is_left):
        super(SpecialCombinator, self).__init__(RuleType.NOISE)
        self.left = left
        self.right = right
        self.result = result
        self.head_is_left = head_is_left
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self):
        super(ForwardApplication, self).__init__(RuleType.FA)
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self, left, right, slash):
        super(GeneralizedForwardComposition, self).__init__(RuleType.GFC)
        self.left_slash = left
        self.right_slash = right
        self.result_slash = slash
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self):
        super(Conjunction, self).__init__(RuleType.CONJ)
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self, punct_is_left):
        super(RemovePunctuation, self).__init__(RuleType.RP)
        self.punct_is_left = punct_is_left
github masashi-y / depccg / cython / combinator.py View on Github external
def __init__(self, left, right, slash):
        super(GeneralizedBackwardComposition, self).__init__(RuleType.GBX)
        self.left_slash = left
        self.right_slash = right
        self.result_slash = slash