Пример #1
0
 def getConstantSentenceForms(cls, sentenceForms, dependencyGraph):
     """ generated source for method getConstantSentenceForms """
     augmentedGraph = augmentGraphWithLanguageRules(dependencyGraph, sentenceForms)
     changingSentenceForms = DependencyGraphs.getMatchingAndDownstream(sentenceForms, augmentedGraph, Predicates.or_(SentenceForms.TRUE_PRED, SentenceForms.DOES_PRED))
     return ImmutableSet.copyOf(Sets.difference(sentenceForms, changingSentenceForms))
Пример #2
0
 def getIndependentSentenceForms(cls, sentenceForms, dependencyGraph):
     """ generated source for method getIndependentSentenceForms """
     augmentedGraph = augmentGraphWithLanguageRules(dependencyGraph, sentenceForms)
     moveDependentSentenceForms = DependencyGraphs.getMatchingAndDownstream(sentenceForms, augmentedGraph, SentenceForms.DOES_PRED)
     return ImmutableSet.copyOf(Sets.difference(sentenceForms, moveDependentSentenceForms))