This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# grpc_generate ( | |
# <TARGET|OUTVAR> | |
# <LANGUAGE (cpp|csharp|javascript|objective_c|php|python|ruby)> | |
# <IMPORT_DIRS [args...]> | |
# [PROTOC_OUT_DIR] | |
# <PROTOS [args...]> | |
# ) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import enum | |
def tryParseFloat (string, default = 0): | |
try: | |
return float(string) | |
except ValueError: | |
return default | |
def parseFraction (num): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
class AnnoEntry(object): | |
def __init__ (self, id, start, end, label, word): | |
self.id = id | |
self.start = start | |
self.end = end | |
self.label = label | |
self.word = word |