def __init__(self, tree_str=None, cell_extractor=None, zero_based=False, cell_separator=None, top_relation_label='ROOT'):
        self.nodes = defaultdict(lambda:  {'address': None,
                                           'word': None,
                                           'lemma': None,
                                           'ctag': None,
                                           'tag': None,
                                           'feats': None,
                                           'head': None,
                                           'deps': defaultdict(list),
                                           'rel': None,
                                           })

        self.nodes[0].update(
            {
                'ctag': 'TOP',
                'tag': 'TOP',
                'address': 0,
            }
        )

        self.root = None

        if tree_str:
            self._parse(
                tree_str,
                cell_extractor=cell_extractor,
                zero_based=zero_based,
                cell_separator=cell_separator,
                top_relation_label=top_relation_label,
            )
Return order as a dict with keys in (direction, price, quantity).
dataset/ETHPy150Open nltk/nltk/nltk/parse/dependencygraph.py/DependencyGraph.__init__--crossover with--dataset/ETHPy150Open jcbagneris/fms/fms/contrib/coleman/agents/avgbuyselltrader.py/AvgBuySellTrader.act