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

Spelling Query is not returning expected results with Tap Client. #220

Open
ViolentCrumble opened this issue Jan 6, 2019 · 0 comments
Open

Comments

@ViolentCrumble
Copy link
Collaborator

Steps to Reproduce:

# Set our query type to Spelling
query = tap.query('spelling')

# no params needed

# pass in some test data
string = "Th is the frst graet hpapy blue anrgy cold sentence. This is the second fantastic sentence."

# query the api
strResult = tap.analyse_text(query, string)

# Print Result
print("-" * 40)
print("Spelling:")
print("-" * 40)
print("Input Text:\n\n", string)
print("\n")
print("Raw Result:\n\n")
print(json.dumps(strResult, indent=2))

Received Output:

result: 
{
  "data": {
    "spelling": {
      "timestamp": "2019-01-03T01:56:44.311809Z",
      "message": "",
      "querytime": 13,
      "analytics": [
        {
          "sentIdx": 0,
          "spelling": []
        },
        {
          "sentIdx": 1,
          "spelling": []
        }
      ]
    }
  }
}

Tried various sentences and spelling errors and the returned result was always the same.

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