--add_postimexdiff

Switch

--add_postimexdiff

Description

Like --add_timexdiff, but also creates a part-of-speech-tagged version of the table.

Argument and Default Value

No argument. Boolean switch, default: False. Uses --date_field to know each message's post-time.

Details

Same requirements as --add_timexdiff: needs a running Stanford CoreNLP server on localhost (FeatureExtractor.addPOSAndTimexDiffFeatTable() connects via jsonrpclib.Server(...)) with time-expression annotation available.

Known issue — broken in SQLite mode too, and hit first. Same mm.disableTableKeys(...) pattern as --add_timexdiff; expect sqlite3.OperationalError: near "DISABLE": syntax error before the CoreNLP logic is ever exercised.

Other Switches

Required Switches:

  • -d, -g, -t

  • --date_field

  • A running Stanford CoreNLP server (external, not installable via pip)

Example Commands

Requires MySQL and a running CoreNLP server — not runnable as-is against the packaged SQLite dla_tutorial dataset:

dlatkInterface.py -d dla_tutorial -t msgs -c user_id --date_field date --add_postimexdiff