usc-isi-i2 / dig-etl-engine

Download DIG to run on your laptop or server.
http://usc-isi-i2.github.io/dig/
MIT License
101 stars 39 forks source link

Spacy Extractor not working #242

Closed saggu closed 6 years ago

saggu commented 6 years ago

Tried with a simple rule

{
            "rules": [
                {
                    "polarity": "true",
                    "description": "",
                    "pattern": [
                        {
                            "prefix": "",
                            "suffix": "",
                            "capitalization": [],
                            "part_of_speech": [],
                            "length": [
                                "3"
                            ],
                            "maximum": "",
                            "minimum": "",
                            "shapes": [],
                            "token": [],
                            "numbers": [
                                ""
                            ],
                            "is_in_vocabulary": "false",
                            "is_out_of_vocabulary": "false",
                            "is_required": "true",
                            "type": "number",
                            "is_in_output": "true",
                            "match_all_forms": "false",
                            "contain_digit": "false"
                        }
                    ],
                    "output_format": "",
                    "is_active": "true",
                    "dependencies": [],
                    "identifier": "current rule"
                }
            ],
            "test_text": "432",
            "field_name": "phone",
            "test_tokens": [
                {
                    "index": 0,
                    "whitespace": "",
                    "text": "432"
                }
            ],
            "results": []
        }

Does not produce any output

saggu commented 6 years ago

Seems like it was working except for the case I tested: Number with a certain length. Seems to be working now. Closing this issue