def from_file(filename, serverEndpoint=ServerEndpoint, xmlContent=False): if not xmlContent: jsonOutput = parse1('all', filename, serverEndpoint) else: jsonOutput = parse1('all', filename, serverEndpoint, services={ 'meta': '/meta', 'text': '/tika', 'all': '/rmeta/xml' }) return _parse(jsonOutput)
def from_file(filename, serverEndpoint=ServerEndpoint): jsonOutput = parse1('all', filename, serverEndpoint) return _parse(jsonOutput)
def from_file(filename, serverEndpoint=ServerEndpoint, xmlContent=False): if not xmlContent: jsonOutput = parse1('all', filename, serverEndpoint) else: jsonOutput = parse1('all', filename, serverEndpoint, services={'meta': '/meta', 'text': '/tika', 'all': '/rmeta/xml'}) return _parse(jsonOutput)