Skip to content

local pipeline yields different results from remote one #128

@mattia-barbaresi

Description

@mattia-barbaresi

Hi,

Using it as a shallow parser, I noted that for some input strings the results are not the same.
As an example:

from ccg_nlpy import local_pipeline
from ccg_nlpy import remote_pipeline
pipeline_remote = remote_pipeline.RemotePipeline()
pipeline_local = local_pipeline.LocalPipeline()
input_str = "youve not played with this ."
doc_r = pipeline_remote.doc(input_str, pretokenized=False)
doc_l = pipeline_local.doc(input_str, pretokenized=False)
spr = " || ".join(x["tokens"] for x in doc_r.get_shallow_parse.cons_list)
spl = " || ".join(x["tokens"] for x in doc_l.get_shallow_parse.cons_list)
print("spl:", spl)
print("spr: ", spr)

The above code prints the following (LocalPipeline gets rid of not in this case):

spl: youve || played || with || this
spr:  youve not || played || with || this

Any suggestion?
Thanks, Mattia.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions