Inference¶
Modules
Conditional¶
-
inference.conditional_filter.
conditional_filter
(tree)¶ Infer conditional grammar is used or not
- Parameters
tree – Paresed dependency tree of sentence
- Returns
True (Conditional grammar is used in sentence) / False (Conditional grammar is not used in sentence)
Gerund¶
-
inference.gerund_filter.
gerund_filter
(tree)¶ Infer gerund grammar is used or not in the sentence
- Parameters
tree – Paresed dependency tree of sentence
- Returns
True (Gerund grammar is used in sentence) / False (Gerund grammar is not used in sentence)
Passive¶
-
inference.passive_filter.
passive_filter
(tree)¶ Infer passive grammar is used in this sentence or not
- Parameters
tree – Paresed dependency tree of sentence
- Returns
True (Passive grammar is used in sentence) / False (Passive grammar is not used in sentence)
Present-Perfect¶
-
inference.present_perfect_filter.
present_perfect_filter
(tree)¶ Infer present-perfect is used in sentence or not
- Parameters
tree – Paresed dependency tree of sentence
- Returns
True (Present-Perfect grammar is used in sentence) / False (Present-Perfect grammar is not used in sentence)