MCPcopy
hub / github.com/nltk/nltk / has_priority

Method has_priority

nltk/sem/logic.py:552–558  ·  view source on GitHub ↗
(self, operation, context)

Source from the content-addressed store, hash-verified

550 return LambdaExpression(variable, term)
551
552 def has_priority(self, operation, context):
553 return self.operator_precedence[operation] < self.operator_precedence[
554 context
555 ] or (
556 operation in self.right_associated_operations
557 and self.operator_precedence[operation] == self.operator_precedence[context]
558 )
559
560 def assertNextToken(self, expected):
561 try:

Calls

no outgoing calls

Tested by

no test coverage detected