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

Adding a new entry point for POS tagger only output #21

Open
oterrier opened this issue Mar 16, 2019 · 0 comments
Open

Adding a new entry point for POS tagger only output #21

oterrier opened this issue Mar 16, 2019 · 0 comments

Comments

@oterrier
Copy link

Hi,
I'm thinking in adding a new entry point /tag to retrieve a result of the POS tagging of a document with detailed output for each token.
My basic idea is to accept a json request with the following body:

{
text : "text",
model: "model",
include_sentences : true|false, #include a sentence level or not in the output
attr_filter : [ ] #list of token attributes to include in the output, like ["lemma", "pos", ... "is_stop", ...]
}

The output could be a list of tokens like:
[ { text : "text", start : 111, end : 222, lemma : "lemma", ... } , {}, .. , ]

with eventually an additionnal sentence level like:

[
 { text : "sentence text", start : 0, end : 100000, tokens : [ {}, ... {}] },
...
]

What do you think ?
I need something like that to use spacy from a java program

Best regards

Olivier

@oterrier oterrier changed the title Addind a new entry point for POS tagger only output Adding a new entry point for POS tagger only output Mar 18, 2019
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