(text, annotators=None, output_format=None, properties=None)
| 39 | |
| 40 | |
| 41 | def annotate(text, annotators=None, output_format=None, properties=None): |
| 42 | global _singleton |
| 43 | if not _singleton: |
| 44 | _singleton = CoreNLP() |
| 45 | return _singleton.annotate(text, annotators, output_format, properties) |