Skip to content

Instantly share code, notes, and snippets.

View Maccodonaldo's full-sized avatar

Daniel Hoppe Alvarez Maccodonaldo

  • PricewaterhouseCoopers GmbH
  • Düsseldorf
  • 20:30 (UTC +01:00)
View GitHub Profile
@Maccodonaldo
Maccodonaldo / dkpro-cli.py
Created March 7, 2019 12:35
This tool generates code to expose a dkpro pipeline in a java server running in on a alpine based docker container
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
# pylint: disable=no-value-for-parameter
import click # package for easy cli generation
import subprocess # package to execute the shell,
import re
import os
import sys
from collections import defaultdict
class NFA:
def __init__(self, q0, qF):
# set start and set of final positions
self.q0 = q0
self.qF = set(qF)