tap icon indicating copy to clipboard operation
tap copied to clipboard

Spelling Query is not returning expected results with Tap Client.

Open ViolentCrumble opened this issue 6 years ago • 0 comments

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.

ViolentCrumble avatar Jan 06 '19 23:01 ViolentCrumble