Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local pipeline yields different results from remote one #128

Open
mattia-barbaresi opened this issue Nov 28, 2022 · 0 comments
Open

local pipeline yields different results from remote one #128

mattia-barbaresi opened this issue Nov 28, 2022 · 0 comments

Comments

@mattia-barbaresi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant