Igor Mel'cuk

12 papers A* 1B 3Journal 4Unranked 4
YearRankTypeTitle / Venue / Authors
2017 conf
DepLing
Igor Mel'cuk
2010 conf
TALN (Invitations)
Igor Mel'cuk
2010 conf
A Way with Words
Igor Mel'cuk
2008 J jnl
Mach. Transl.
Igor Mel'cuk, Leo Wanner
2006 J jnl
Mach. Transl.
Igor Mel'cuk, Leo Wanner
2006 conf
FinTAL
Igor Mel'cuk
2001 J jnl
Mach. Transl.
Igor Mel'cuk, Leo Wanner
1987 J jnl
Comput. Linguistics
Igor Mel'cuk, Alain Polguère
1983 A* conf
IJCAI
Richard I. Kittredge, Igor Mel'cuk
1973 B conf
COLING
Igor Mel'cuk
1969 B conf
COLING
Igor Mel'cuk, A. V. Gladky
1967 B conf
COLING
A. Jolkovsky, Igor Mel'cuk
redb/extractors/decompiler/bninja/utils/json_encoder.py
← Index redb/extractors/decompiler/bninja/utils/json_encoder.py python
import json


class BinaryNinjaEncoder(json.JSONEncoder):
    """Custom JSON encoder for BinaryNinja types"""

    def default(self, obj):
        # Handle Binary Ninja specific types

        # for values, we try to obtain the json for the value property
        if hasattr(obj, "value") and hasattr(obj, "confidence"):
            return obj.value

        # for strings, we simply compute the native string
        if hasattr(obj, "__str__"):
            return str(obj)

        # for all the others values we use the normal json encoder
        return json.JSONEncoder.default(self, obj)