summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Denkowski <mdenkows@cs.cmu.edu>2013-10-07 08:09:51 -0700
committerMichael Denkowski <mdenkows@cs.cmu.edu>2013-10-07 08:09:51 -0700
commit13b1eb367cfeab33fa081ca6725a7dcecf16ed88 (patch)
treeb0fa32ffcc3b413fb436425b0425599c5137a5f6
parent51a83643d95ab0d7add9dd66b0b38044db10a797 (diff)
Documentation
-rw-r--r--realtime/README.md2
-rwxr-xr-xrealtime/realtime.py19
2 files changed, 19 insertions, 2 deletions
diff --git a/realtime/README.md b/realtime/README.md
index 584ee516..e5290fc5 100644
--- a/realtime/README.md
+++ b/realtime/README.md
@@ -1,4 +1,4 @@
-cdec-realtime
+cdec Realtime
-------------
Code by Michael Denkowski (http://www.cs.cmu.edu/~mdenkows/, mdenkows@cs.cmu.edu)
diff --git a/realtime/realtime.py b/realtime/realtime.py
index 6ee785f8..ec15b59d 100755
--- a/realtime/realtime.py
+++ b/realtime/realtime.py
@@ -8,9 +8,26 @@ import time
import rt
+ABOUT = '''Realtime adaptive translation with cdec (See README.md)
+
+Code by Michael Denkowski
+
+Citation:
+@misc{denkowski-proposal2013,
+ author = {Michael Denkowski},
+ title = {Machine Translation for Human Translators},
+ year = {2013},
+ month = {May},
+ day = {30},
+ howpublished = {{Ph.D.} Thesis Proposal, Carnegie Mellon University}
+}
+
+'''
+
class Parser(argparse.ArgumentParser):
def error(self, message):
+ sys.stderr.write(ABOUT)
self.print_help()
sys.stderr.write('\n{}\n'.format(message))
sys.exit(2)
@@ -55,7 +72,7 @@ def debug(translator, input):
def main():
- parser = Parser(description='Real-time adaptive translation with cdec. (See README.md)')
+ parser = Parser()
parser.add_argument('-c', '--config', required=True, help='Config directory')
parser.add_argument('-s', '--state', help='Load state file to default context (saved incremental data)')
parser.add_argument('-n', '--normalize', help='Normalize text (tokenize, translate, detokenize)', action='store_true')