Skip to content

Keyphrase extraction

Keyphrase extraction determines the relevant elements of a text:

  • Relevant topics
  • Main sentences
  • Main phrases
  • Main concepts
  • Main lemmas

Main concepts are returned as Knowledge Graph syncons and enriched through knowledge linking. Wikidata, DBpedia and GeoNames references are provided when applicable. In the case of real places, geographic coordinates are also provided.

Relevant topics are chosen from the Knowledge Graph. You can find the list of possible topics in the reference section.

Here is an example of performing keyphrase extraction on an English newspaper article:

This example is based on the Python SDK you find in the expert.ai developer portal.

In the example it is assumed that you put this text:

At first there was considerable trouble about getting the machine up in the air and the engine well up to speed. They did this by running along a single-rail track perhaps 200 feet long. It was also, in the early experiments, found advisable to run against the wind, because they could then have a greater time to practice in the air and not get so far away from the building where it was stored. Since they can come around to the starting-point, however, they can start with the wind even behind them; and with a strong wind behind it is an easy matter to make even more than a mile a minute. The operator takes his place lying flat on his face. This position offers less resistance to the wind. The engine is started and got up to speed. The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft. When it first turned that circle, and came near the starting-point. I was right in front it; and I said then, and I believe still, it was one of the grandest sights, if not the grandest sight, of my life. Imagine a locomotive that has left its track, and is climbing up in the air right toward you—a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum. Well, now, imagine this white locomotive, with wings that spread 20 feet each way, coming right toward you with a tremendous flap of its propellers, and you will have something like what I saw. The younger brother bade me move to one side for fear it might come down suddenly; but I tell you, friends, the sensation that one feels in such a crisis is something hard to describe. The attendant at one time, when the rope came off that started it, said he was shaking from head to foot as if he had a fit of ague. His shaking was uncalled for, however, for the intrepid manager succeeded in righting up his craft, and she made one of her very best flights. I may add, however, that the apparatus is secured by patents, both in this and in foreign countries; and as nobody else has as yet succeeded in doing any thing like what they have done I hope no millionaire or syndicate will try to rob them of the invention or laurels they have so fairly and honestly earned.  When Columbus discovered America he did not know what the outcome would be, and no one at that time knew; and I doubt if the wildest enthusiast caught a glimpse of what really did come from his discovery. In a like manner these two brothers have probably not even a faint glimpse of what their discovery is going to bring to the children of men. No one living can give a guess of what is coming along this line, much better than any one living could conjecture the final outcome of Columbus' experiment when lie pushed off through the trackless waters. Possibly we may be able to fly over the north pole, even if we should not succeed in tacking the "stars and stripes" to its uppermost end.

inside a file named document.txt.

The SDK's API client gets user credentials from two environment variables:

EAI_USERNAME
EAI_PASSWORD

Set those variables with you account credentials before running the sample program below.

The program prints a JSON representation of the results and the list of main lemmas.

from expertai.client import ExpertAiClient
eai = ExpertAiClient()

file = open("document.txt")
text = file.read()
file.close()

language= 'en'

response = eai.specific_resource_analysis(body={"document": {"text": text}}, params={'language': language, 'resource': 'relevants'})


# Output JSON representation

print("JSON representation:")
print(response.json)


# Main lemmas

print("\nMain lemmas:")
document = response.json["data"]

for entity in document["mainLemmas"]:
    print(entity["value"])

This example is based on the Java SDK you find in the expert.ai developer portal.

In the code below, replace yourusername and yourpassword with your account credentials.

In the example it is assumed that you put this text:

At first there was considerable trouble about getting the machine up in the air and the engine well up to speed. They did this by running along a single-rail track perhaps 200 feet long. It was also, in the early experiments, found advisable to run against the wind, because they could then have a greater time to practice in the air and not get so far away from the building where it was stored. Since they can come around to the starting-point, however, they can start with the wind even behind them; and with a strong wind behind it is an easy matter to make even more than a mile a minute. The operator takes his place lying flat on his face. This position offers less resistance to the wind. The engine is started and got up to speed. The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft. When it first turned that circle, and came near the starting-point. I was right in front it; and I said then, and I believe still, it was one of the grandest sights, if not the grandest sight, of my life. Imagine a locomotive that has left its track, and is climbing up in the air right toward you—a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum. Well, now, imagine this white locomotive, with wings that spread 20 feet each way, coming right toward you with a tremendous flap of its propellers, and you will have something like what I saw. The younger brother bade me move to one side for fear it might come down suddenly; but I tell you, friends, the sensation that one feels in such a crisis is something hard to describe. The attendant at one time, when the rope came off that started it, said he was shaking from head to foot as if he had a fit of ague. His shaking was uncalled for, however, for the intrepid manager succeeded in righting up his craft, and she made one of her very best flights. I may add, however, that the apparatus is secured by patents, both in this and in foreign countries; and as nobody else has as yet succeeded in doing any thing like what they have done I hope no millionaire or syndicate will try to rob them of the invention or laurels they have so fairly and honestly earned.  When Columbus discovered America he did not know what the outcome would be, and no one at that time knew; and I doubt if the wildest enthusiast caught a glimpse of what really did come from his discovery. In a like manner these two brothers have probably not even a faint glimpse of what their discovery is going to bring to the children of men. No one living can give a guess of what is coming along this line, much better than any one living could conjecture the final outcome of Columbus' experiment when lie pushed off through the trackless waters. Possibly we may be able to fly over the north pole, even if we should not succeed in tacking the "stars and stripes" to its uppermost end.

inside a file named document.txt.

The program prints a JSON representation of the results and the list of main lemmas.

import ai.expert.nlapi.security.Authentication;
import ai.expert.nlapi.security.Authenticator;
import ai.expert.nlapi.security.BasicAuthenticator;
import ai.expert.nlapi.security.Credential;
import ai.expert.nlapi.v1.API;
import ai.expert.nlapi.v1.Analyzer;
import ai.expert.nlapi.v1.AnalyzerConfig;        
import ai.expert.nlapi.v1.message.ResponseDocument;
import ai.expert.nlapi.v1.model.DataModel;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.stream.Collectors;

public class Main {

    public static String loadText() {
        try {
            Path path = Paths.get("document.txt");
            return Files.lines(path).collect(Collectors.joining("\r\n"));
        }
        catch(IOException e) {
            return null;
        }
    }

    public static Authentication createAuthentication() throws Exception {
        Authenticator authenticator = new BasicAuthenticator(new Credential("yourusername", "yourpassword"));
        return new Authentication(authenticator);
    }

    public static Analyzer createAnalyzer() throws Exception {
        return new Analyzer(AnalyzerConfig.builder()
                .withVersion(API.Versions.V1)
                .withContext(API.Contexts.STANDARD)
                .withLanguage(API.Languages.en)
                .withAuthentication(createAuthentication())
                .build());
    }

    public static void main(String[] args) {
        try {
            String text = loadText();

            Analyzer analyzer = createAnalyzer();

            ResponseDocument relevants = analyzer.relevants(text);


            // Output JSON representation

            System.out.println("JSON representation:");
            relevants.prettyPrint();


            // Main lemmas

            System.out.println("Main lemmas:");
            DataModel data = relevants.getData();
            data.getMainLemmas().stream().forEach(c -> System.out.println(c.getValue()));
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
    }
}

The following curl command posts a document to the keyphrase extraction resource of the API's REST interface.
Run the command from a shell after replacing token with the actual authorization token.

curl -X POST https://nlapi.expert.ai/v1/analyze/standard/en/relevants \
    -H 'Authorization: Bearer token' \
    -H 'Content-Type: application/json; charset=utf-8' \
    -d '{
  "document": {
    "text": "At first there was considerable trouble about getting the machine up in the air and the engine well up to speed. They did this by running along a single-rail track perhaps 200 feet long. It was also, in the early experiments, found advisable to run against the wind, because they could then have a greater time to practice in the air and not get so far away from the building where it was stored. Since they can come around to the starting-point, however, they can start with the wind even behind them; and with a strong wind behind it is an easy matter to make even more than a mile a minute. The operator takes his place lying flat on his face. This position offers less resistance to the wind. The engine is started and got up to speed. The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft. When it first turned that circle, and came near the starting-point. I was right in front it; and I said then, and I believe still, it was one of the grandest sights, if not the grandest sight, of my life. Imagine a locomotive that has left its track, and is climbing up in the air right toward you—a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum. Well, now, imagine this white locomotive, with wings that spread 20 feet each way, coming right toward you with a tremendous flap of its propellers, and you will have something like what I saw. The younger brother bade me move to one side for fear it might come down suddenly; but I tell you, friends, the sensation that one feels in such a crisis is something hard to describe. The attendant at one time, when the rope came off that started it, said he was shaking from head to foot as if he had a fit of ague. His shaking was uncalled for, however, for the intrepid manager succeeded in righting up his craft, and she made one of her very best flights. I may add, however, that the apparatus is secured by patents, both in this and in foreign countries; and as nobody else has as yet succeeded in doing any thing like what they have done I hope no millionaire or syndicate will try to rob them of the invention or laurels they have so fairly and honestly earned.  When Columbus discovered America he did not know what the outcome would be, and no one at that time knew; and I doubt if the wildest enthusiast caught a glimpse of what really did come from his discovery. In a like manner these two brothers have probably not even a faint glimpse of what their discovery is going to bring to the children of men. No one living can give a guess of what is coming along this line, much better than any one living could conjecture the final outcome of Columbus'\'' experiment when lie pushed off through the trackless waters. Possibly we may be able to fly over the north pole, even if we should not succeed in tacking the \"stars and stripes\" to its uppermost end."
  }
}'

The server returns a JSON object like the one below.
For more information see the following pages in the reference section:

{
    "data": {
        "content": "At first there was considerable trouble about getting the machine up in the air and the engine well up to speed. They did this by running along a single-rail track perhaps 200 feet long. It was also, in the early experiments, found advisable to run against the wind, because they could then have a greater time to practice in the air and not get so far away from the building where it was stored. Since they can come around to the starting-point, however, they can start with the wind even behind them; and with a strong wind behind it is an easy matter to make even more than a mile a minute. The operator takes his place lying flat on his face. This position offers less resistance to the wind. The engine is started and got up to speed. The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft. When it first turned that circle, and came near the starting-point. I was right in front it; and I said then, and I believe still, it was one of the grandest sights, if not the grandest sight, of my life. Imagine a locomotive that has left its track, and is climbing up in the air right toward you-a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum. Well, now, imagine this white locomotive, with wings that spread 20 feet each way, coming right toward you with a tremendous flap of its propellers, and you will have something like what I saw. The younger brother bade me move to one side for fear it might come down suddenly; but I tell you, friends, the sensation that one feels in such a crisis is something hard to describe. The attendant at one time, when the rope came off that started it, said he was shaking from head to foot as if he had a fit of ague. His shaking was uncalled for, however, for the intrepid manager succeeded in righting up his craft, and she made one of her very best flights. I may add, however, that the apparatus is secured by patents, both in this and in foreign countries; and as nobody else has as yet succeeded in doing any thing like what they have done I hope no millionaire or syndicate will try to rob them of the invention or laurels they have so fairly and honestly earned.  When Columbus discovered America he did not know what the outcome would be, and no one at that time knew; and I doubt if the wildest enthusiast caught a glimpse of what really did come from his discovery. In a like manner these two brothers have probably not even a faint glimpse of what their discovery is going to bring to the children of men. No one living can give a guess of what is coming along this line, much better than any one living could conjecture the final outcome of Columbus' experiment when lie pushed off through the trackless waters. Possibly we may be able to fly over the north pole, even if we should not succeed in tacking the \"stars and stripes\" to its uppermost end.",
        "knowledge": [
            {
                "label": "concept.change.movement",
                "syncon": 1292
            },
            {
                "label": "concept.action.activity.test",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q101965"
                    }
                ],
                "syncon": 2496
            },
            {
                "label": "object.artifact.product.instrument.device.mechanism.machine.motor",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q178185"
                    }
                ],
                "syncon": 15231
            },
            {
                "label": "object.artifact.product.vehicle",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q93301"
                    }
                ],
                "syncon": 17077
            },
            {
                "label": "object.artifact.product.instrument.device.mechanism.machine",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q11019"
                    }
                ],
                "syncon": 17155
            },
            {
                "label": "object.artifact.construction_work.actual_construction",
                "syncon": 21298
            },
            {
                "label": "object.component.object_part.item",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q2643782"
                    }
                ],
                "syncon": 21409
            },
            {
                "label": "geographic_element.geographic_place.geographic_area",
                "properties": [
                    {
                        "type": "Coordinate",
                        "value": "Lat:19.0.0N/19.000000;Long:96.0.0W/-96.000000"
                    },
                    {
                        "type": "DBpediaId",
                        "value": "dbpedia.org/page/Americas"
                    },
                    {
                        "type": "GeoNamesId",
                        "value": "10861432"
                    },
                    {
                        "type": "WikiDataId",
                        "value": "Q828"
                    }
                ],
                "syncon": 39918
            },
            {
                "label": "person",
                "properties": [
                    {
                        "type": "DBpediaId",
                        "value": "dbpedia.org/page/Christopher_Columbus"
                    },
                    {
                        "type": "WikiDataId",
                        "value": "Q7322"
                    }
                ],
                "syncon": 45740
            },
            {
                "label": "natural_phenomenon.atmospheric_phenomenon.wind",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q8094"
                    }
                ],
                "syncon": 46528
            },
            {
                "label": "concept.event.start",
                "syncon": 62721
            },
            {
                "label": "object",
                "syncon": 73704
            },
            {
                "label": "concept.knowledge.form_of_thought.thought",
                "syncon": 121228
            },
            {
                "label": "person.titled_person.leader",
                "syncon": 121958
            },
            {
                "label": "person.adult_person.worker",
                "syncon": 158778
            }
        ],
        "language": "en",
        "mainLemmas": [
            {
                "positions": [
                    {
                        "end": 1162,
                        "start": 1152
                    },
                    {
                        "end": 1167,
                        "start": 1163
                    },
                    {
                        "end": 1247,
                        "start": 1237
                    },
                    {
                        "end": 1343,
                        "start": 1333
                    },
                    {
                        "end": 1402,
                        "start": 1392
                    }
                ],
                "score": 10.39,
                "value": "locomotive"
            },
            {
                "positions": [
                    {
                        "end": 65,
                        "start": 58
                    },
                    {
                        "end": 751,
                        "start": 744
                    },
                    {
                        "end": 921,
                        "start": 914
                    }
                ],
                "score": 9.3,
                "value": "machine"
            },
            {
                "positions": [
                    {
                        "end": 2341,
                        "start": 2333
                    },
                    {
                        "end": 2818,
                        "start": 2810
                    }
                ],
                "score": 5.8,
                "value": "Christopher Columbus"
            },
            {
                "positions": [
                    {
                        "end": 224,
                        "start": 213
                    },
                    {
                        "end": 2830,
                        "start": 2820
                    }
                ],
                "score": 3.5,
                "value": "experiment"
            },
            {
                "positions": [
                    {
                        "end": 2704,
                        "start": 2699
                    }
                ],
                "score": 3.29,
                "value": "guess"
            },
            {
                "positions": [
                    {
                        "end": 1937,
                        "start": 1930
                    }
                ],
                "score": 3.0,
                "value": "manager"
            },
            {
                "positions": [
                    {
                        "end": 1301,
                        "start": 1296
                    },
                    {
                        "end": 1414,
                        "start": 1409
                    },
                    {
                        "end": 1419,
                        "start": 1415
                    }
                ],
                "score": 3.0,
                "value": "wing"
            }
        ],
        "mainPhrases": [
            {
                "positions": [
                    {
                        "end": 99,
                        "start": 88
                    }
                ],
                "score": 25.29,
                "value": "engine well"
            },
            {
                "positions": [
                    {
                        "end": 929,
                        "start": 914
                    }
                ],
                "score": 14.6,
                "value": "machine spring"
            },
            {
                "positions": [
                    {
                        "end": 903,
                        "start": 883
                    }
                ],
                "score": 11.39,
                "value": "four-cylinder engine"
            },
            {
                "positions": [
                    {
                        "end": 1343,
                        "start": 1327
                    }
                ],
                "score": 6.19,
                "value": "say-a locomotive"
            },
            {
                "positions": [
                    {
                        "end": 2830,
                        "start": 2799
                    }
                ],
                "score": 5.19,
                "value": "outcome of Columbus' experiment"
            },
            {
                "positions": [
                    {
                        "end": 1937,
                        "start": 1921
                    }
                ],
                "score": 4.3,
                "value": "intrepid manager"
            }
        ],
        "mainSentences": [
            {
                "end": 112,
                "score": 18.7,
                "start": 0,
                "value": "At first there was considerable trouble about getting the machine up in the air and the engine well up to speed."
            },
            {
                "end": 1361,
                "score": 14.69,
                "start": 1142,
                "value": "Imagine a locomotive that has left its track, and is climbing up in the air right toward you-a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum."
            },
            {
                "end": 936,
                "score": 13.69,
                "start": 740,
                "value": "The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft."
            }
        ],
        "mainSyncons": [
            {
                "positions": [
                    {
                        "end": 94,
                        "start": 88
                    },
                    {
                        "end": 903,
                        "start": 897
                    },
                    {
                        "end": 1162,
                        "start": 1152
                    },
                    {
                        "end": 1167,
                        "start": 1163
                    },
                    {
                        "end": 1247,
                        "start": 1237
                    },
                    {
                        "end": 1343,
                        "start": 1333
                    },
                    {
                        "end": 1402,
                        "start": 1392
                    }
                ],
                "score": 16.5,
                "syncon": 17077
            },
            {
                "positions": [
                    {
                        "end": 65,
                        "start": 58
                    },
                    {
                        "end": 751,
                        "start": 744
                    },
                    {
                        "end": 921,
                        "start": 914
                    }
                ],
                "score": 15.1,
                "syncon": 17155
            },
            {
                "positions": [
                    {
                        "end": 2341,
                        "start": 2333
                    },
                    {
                        "end": 2818,
                        "start": 2810
                    }
                ],
                "score": 9.0,
                "syncon": 45740
            },
            {
                "positions": [
                    {
                        "end": 707,
                        "start": 701
                    }
                ],
                "score": 6.3,
                "syncon": 15231
            },
            {
                "positions": [
                    {
                        "end": 224,
                        "start": 213
                    },
                    {
                        "end": 2830,
                        "start": 2820
                    }
                ],
                "score": 5.8,
                "syncon": 2496
            },
            {
                "positions": [
                    {
                        "end": 2704,
                        "start": 2699
                    }
                ],
                "score": 5.5,
                "syncon": 121228
            },
            {
                "positions": [
                    {
                        "end": 1937,
                        "start": 1930
                    }
                ],
                "score": 5.09,
                "syncon": 121958
            },
            {
                "positions": [
                    {
                        "end": 1885,
                        "start": 1878
                    }
                ],
                "score": 4.8,
                "syncon": 1292
            },
            {
                "positions": [
                    {
                        "end": 99,
                        "start": 95
                    }
                ],
                "score": 4.8,
                "syncon": 21298
            },
            {
                "positions": [
                    {
                        "end": 484,
                        "start": 480
                    },
                    {
                        "end": 525,
                        "start": 521
                    }
                ],
                "score": 4.69,
                "syncon": 46528
            },
            {
                "positions": [
                    {
                        "end": 1414,
                        "start": 1409
                    },
                    {
                        "end": 1419,
                        "start": 1415
                    }
                ],
                "score": 4.69,
                "syncon": 21409
            },
            {
                "positions": [
                    {
                        "end": 2360,
                        "start": 2353
                    }
                ],
                "score": 4.5,
                "syncon": 39918
            },
            {
                "positions": [
                    {
                        "end": 1754,
                        "start": 1745
                    },
                    {
                        "end": 1981,
                        "start": 1978
                    }
                ],
                "score": 4.4,
                "syncon": 158778
            },
            {
                "positions": [
                    {
                        "end": 445,
                        "start": 431
                    },
                    {
                        "end": 1003,
                        "start": 989
                    }
                ],
                "score": 4.09,
                "syncon": 62721
            },
            {
                "positions": [
                    {
                        "end": 2531,
                        "start": 2522
                    },
                    {
                        "end": 2631,
                        "start": 2622
                    }
                ],
                "score": 4.09,
                "syncon": 73704
            }
        ],
        "topics": [
            {
                "id": 223,
                "label": "mechanics",
                "score": 3.5,
                "winner": true
            },
            {
                "id": 182,
                "label": "industry",
                "score": 2.09,
                "winner": false
            },
            {
                "id": 135,
                "label": "trains",
                "score": 1.2,
                "winner": true
            },
            {
                "id": 113,
                "label": "the economy",
                "score": 1.2,
                "winner": false
            },
            {
                "id": 371,
                "label": "transportation",
                "score": 1.0,
                "winner": true
            },
            {
                "id": 39,
                "label": "motor vehicles",
                "score": 0.8,
                "winner": false
            },
            {
                "id": 230,
                "label": "meteorology",
                "score": 0.69,
                "winner": false
            },
            {
                "id": 114,
                "label": "construction industry",
                "score": 0.69,
                "winner": false
            },
            {
                "id": 340,
                "label": "sports",
                "score": 0.5,
                "winner": false
            },
            {
                "id": 4,
                "label": "aviation",
                "score": 0.5,
                "winner": false
            },
            {
                "id": 208,
                "label": "job market",
                "score": 0.4,
                "winner": false
            },
            {
                "id": 11,
                "label": "anatomy",
                "score": 0.4,
                "winner": false
            },
            {
                "id": 350,
                "label": "roads and traffic",
                "score": 0.3,
                "winner": false
            },
            {
                "id": 225,
                "label": "medicine",
                "score": 0.2,
                "winner": false
            }
        ],
        "version": "sensei: 3.1.0; disambiguator: 15.0-QNTX-2016"
    },
    "success": true
}

The following curl command posts a document to the keyphrase extraction resource of the API's REST interface.
Open a command prompt in the folder where you installed curl and run the command after replacing token with the actual authorization token.

curl -X POST https://nlapi.expert.ai/v1/analyze/standard/en/relevants -H "Authorization: Bearer token" -H "Content-Type: application/json; charset=utf-8" -d "{\"document\": {\"text\": \"At first there was considerable trouble about getting the machine up in the air and the engine well up to speed. They did this by running along a single-rail track perhaps 200 feet long. It was also, in the early experiments, found advisable to run against the wind, because they could then have a greater time to practice in the air and not get so far away from the building where it was stored. Since they can come around to the starting-point, however, they can start with the wind even behind them; and with a strong wind behind it is an easy matter to make even more than a mile a minute. The operator takes his place lying flat on his face. This position offers less resistance to the wind. The engine is started and got up to speed. The machine is held until ready to start by a sort of trap to be sprung when all is ready; then with a tremendous flapping and snapping of the four-cylinder engine, the huge machine springs aloft. When it first turned that circle, and came near the starting-point. I was right in front it; and I said then, and I believe still, it was one of the grandest sights, if not the grandest sight, of my life. Imagine a locomotive that has left its track, and is climbing up in the air right toward you—a locomotive without any wheels, we will say, but with white wings instead, we will further say-a locomotive made of aluminum. Well, now, imagine this white locomotive, with wings that spread 20 feet each way, coming right toward you with a tremendous flap of its propellers, and you will have something like what I saw. The younger brother bade me move to one side for fear it might come down suddenly; but I tell you, friends, the sensation that one feels in such a crisis is something hard to describe. The attendant at one time, when the rope came off that started it, said he was shaking from head to foot as if he had a fit of ague. His shaking was uncalled for, however, for the intrepid manager succeeded in righting up his craft, and she made one of her very best flights. I may add, however, that the apparatus is secured by patents, both in this and in foreign countries; and as nobody else has as yet succeeded in doing any thing like what they have done I hope no millionaire or syndicate will try to rob them of the invention or laurels they have so fairly and honestly earned.  When Columbus discovered America he did not know what the outcome would be, and no one at that time knew; and I doubt if the wildest enthusiast caught a glimpse of what really did come from his discovery. In a like manner these two brothers have probably not even a faint glimpse of what their discovery is going to bring to the children of men. No one living can give a guess of what is coming along this line, much better than any one living could conjecture the final outcome of Columbus' experiment when lie pushed off through the trackless waters. Possibly we may be able to fly over the north pole, even if we should not succeed in tacking the \\\"stars and stripes\\\" to its uppermost end.\"}}"

The server returns a JSON object like the one below.
For more information see the following pages in the reference section:

{
    "data": {
        "content": "Michael Jordan was one of the best basketball players of all time. Scoring was Jordan's stand-out skill, but he still holds a defensive NBA record, with eight steals in a half.",
        "knowledge": [
            {
                "label": "concept.event.outcome",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q1241356"
                    }
                ],
                "syncon": 102
            },
            {
                "label": "concept.action.act",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q522344"
                    }
                ],
                "syncon": 628
            },
            {
                "label": "state.quality.non-physical_property.human_non-physical_feature",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q205961"
                    }
                ],
                "syncon": 25683
            },
            {
                "label": "person.athlete.basketball_player",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q3665646"
                    }
                ],
                "syncon": 41583
            },
            {
                "label": "group.object_group.property",
                "syncon": 54375
            },
            {
                "label": "object.component.object_part.part",
                "syncon": 56504
            },
            {
                "label": "other",
                "syncon": 72504
            },
            {
                "label": "other",
                "syncon": 72760
            },
            {
                "label": "person",
                "properties": [
                    {
                        "type": "WikiDataId",
                        "value": "Q215627"
                    }
                ],
                "syncon": 73282
            },
            {
                "label": "time",
                "syncon": 73451
            },
            {
                "label": "other",
                "syncon": 86973
            },
            {
                "label": "other",
                "syncon": 87205
            },
            {
                "label": "concept.event.happening",
                "syncon": 111950
            },
            {
                "label": "time",
                "syncon": 157871
            },
            {
                "label": "other",
                "syncon": 160458
            },
            {
                "label": "group.human_group.organization.sport_association",
                "properties": [
                    {
                        "type": "DBpediaId",
                        "value": "dbpedia.org/page/National_Basketball_Association"
                    },
                    {
                        "type": "WikiDataId",
                        "value": "Q155223"
                    }
                ],
                "syncon": 206693
            },
            {
                "label": "other",
                "syncon": 220448
            }
        ],
        "language": "en",
        "paragraphs": [
            {
                "end": 176,
                "sentences": [
                    0,
                    1
                ],
                "start": 0
            }
        ],
        "phrases": [
            {
                "end": 14,
                "start": 0,
                "tokens": [
                    0
                ],
                "type": "NP"
            },
            {
                "end": 22,
                "start": 15,
                "tokens": [
                    1,
                    2
                ],
                "type": "PN"
            },
            {
                "end": 53,
                "start": 23,
                "tokens": [
                    3,
                    4,
                    5,
                    6
                ],
                "type": "PP"
            },
            {
                "end": 65,
                "start": 54,
                "tokens": [
                    7,
                    8,
                    9
                ],
                "type": "PP"
            },
            {
                "end": 66,
                "start": 65,
                "tokens": [
                    10
                ],
                "type": "NA"
            },
            {
                "end": 74,
                "start": 67,
                "tokens": [
                    11
                ],
                "type": "NP"
            },
            {
                "end": 103,
                "start": 75,
                "tokens": [
                    12,
                    13,
                    14,
                    15,
                    16
                ],
                "type": "PN"
            },
            {
                "end": 104,
                "start": 103,
                "tokens": [
                    17
                ],
                "type": "NA"
            },
            {
                "end": 108,
                "start": 105,
                "tokens": [
                    18
                ],
                "type": "CP"
            },
            {
                "end": 111,
                "start": 109,
                "tokens": [
                    19
                ],
                "type": "NP"
            },
            {
                "end": 123,
                "start": 112,
                "tokens": [
                    20,
                    21
                ],
                "type": "VP"
            },
            {
                "end": 146,
                "start": 124,
                "tokens": [
                    22,
                    23,
                    24,
                    25
                ],
                "type": "NP"
            },
            {
                "end": 147,
                "start": 146,
                "tokens": [
                    26
                ],
                "type": "NA"
            },
            {
                "end": 165,
                "start": 148,
                "tokens": [
                    27,
                    28,
                    29
                ],
                "type": "PP"
            },
            {
                "end": 175,
                "start": 166,
                "tokens": [
                    30,
                    31,
                    32
                ],
                "type": "PP"
            },
            {
                "end": 176,
                "start": 175,
                "tokens": [
                    33
                ],
                "type": "NA"
            },
            {
                "end": 176,
                "start": 176,
                "tokens": [],
                "type": "CR"
            }
        ],
        "sentences": [
            {
                "end": 66,
                "phrases": [
                    0,
                    1,
                    2,
                    3,
                    4
                ],
                "start": 0
            },
            {
                "end": 176,
                "phrases": [
                    5,
                    6,
                    7,
                    8,
                    9,
                    10,
                    11,
                    12,
                    13,
                    14,
                    15,
                    16
                ],
                "start": 67
            }
        ],
        "tokens": [
            {
                "atoms": [
                    {
                        "end": 7,
                        "lemma": "Michael",
                        "start": 0,
                        "type": "NPR.NPH"
                    },
                    {
                        "end": 14,
                        "lemma": "Jordan",
                        "start": 8,
                        "type": "NPR.NPH"
                    }
                ],
                "dependency": {
                    "head": 2,
                    "id": 0,
                    "label": "nsubj"
                },
                "end": 14,
                "lemma": "Michael Jordan",
                "morphology": "Gender=Masc|Number=Sing",
                "paragraph": 0,
                "phrase": 0,
                "pos": "PROPN",
                "sentence": 0,
                "start": 0,
                "syncon": -1,
                "type": "NPR.NPH",
                "vsyn": {
                    "id": -436162,
                    "parent": 73282
                }
            },
            {
                "dependency": {
                    "head": 2,
                    "id": 1,
                    "label": "cop"
                },
                "end": 18,
                "lemma": "be",
                "morphology": "Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin",
                "paragraph": 0,
                "phrase": 1,
                "pos": "AUX",
                "sentence": 0,
                "start": 15,
                "syncon": 72504,
                "type": "VER"
            },
            {
                "dependency": {
                    "head": 2,
                    "id": 2,
                    "label": "root"
                },
                "end": 22,
                "lemma": "one",
                "morphology": "Number=Sing|NumType=Card",
                "paragraph": 0,
                "phrase": 1,
                "pos": "NUM",
                "sentence": 0,
                "start": 19,
                "syncon": -1,
                "type": "PRO"
            },
            {
                "dependency": {
                    "head": 6,
                    "id": 3,
                    "label": "case"
                },
                "end": 25,
                "lemma": "of",
                "paragraph": 0,
                "phrase": 2,
                "pos": "ADP",
                "sentence": 0,
                "start": 23,
                "syncon": -1,
                "type": "PRE"
            },
            {
                "dependency": {
                    "head": 6,
                    "id": 4,
                    "label": "det"
                },
                "end": 29,
                "lemma": "the",
                "morphology": "Definite=Def|PronType=Art",
                "paragraph": 0,
                "phrase": 2,
                "pos": "DET",
                "sentence": 0,
                "start": 26,
                "syncon": -1,
                "type": "ART"
            },
            {
                "dependency": {
                    "head": 6,
                    "id": 5,
                    "label": "amod"
                },
                "end": 34,
                "lemma": "good",
                "morphology": "Degree=Sup",
                "paragraph": 0,
                "phrase": 2,
                "pos": "ADJ",
                "sentence": 0,
                "start": 30,
                "syncon": 86973,
                "type": "ADJ"
            },
            {
                "atoms": [
                    {
                        "end": 45,
                        "lemma": "basketball",
                        "start": 35,
                        "type": "NOU"
                    },
                    {
                        "end": 53,
                        "lemma": "player",
                        "start": 46,
                        "type": "NOU"
                    }
                ],
                "dependency": {
                    "head": 2,
                    "id": 6,
                    "label": "nmod"
                },
                "end": 53,
                "lemma": "basketball player",
                "morphology": "Number=Plur",
                "paragraph": 0,
                "phrase": 2,
                "pos": "NOUN",
                "sentence": 0,
                "start": 35,
                "syncon": 41583,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 9,
                    "id": 7,
                    "label": "case"
                },
                "end": 56,
                "lemma": "of",
                "paragraph": 0,
                "phrase": 3,
                "pos": "ADP",
                "sentence": 0,
                "start": 54,
                "syncon": -1,
                "type": "PRE"
            },
            {
                "dependency": {
                    "head": 9,
                    "id": 8,
                    "label": "det"
                },
                "end": 60,
                "lemma": "all",
                "paragraph": 0,
                "phrase": 3,
                "pos": "DET",
                "sentence": 0,
                "start": 57,
                "syncon": 87205,
                "type": "ADJ"
            },
            {
                "dependency": {
                    "head": 6,
                    "id": 9,
                    "label": "nmod"
                },
                "end": 65,
                "lemma": "time",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 3,
                "pos": "NOUN",
                "sentence": 0,
                "start": 61,
                "syncon": 73451,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 2,
                    "id": 10,
                    "label": "punct"
                },
                "end": 66,
                "lemma": ".",
                "paragraph": 0,
                "phrase": 4,
                "pos": "PUNCT",
                "sentence": 0,
                "start": 65,
                "syncon": -1,
                "type": "PNT"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 11,
                    "label": "nsubj"
                },
                "end": 74,
                "lemma": "scoring",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 5,
                "pos": "NOUN",
                "sentence": 1,
                "start": 67,
                "syncon": 628,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 12,
                    "label": "cop"
                },
                "end": 78,
                "lemma": "be",
                "morphology": "Mood=Ind|Number=Sing|Person=3|Tense=Past|VerbForm=Fin",
                "paragraph": 0,
                "phrase": 6,
                "pos": "AUX",
                "sentence": 1,
                "start": 75,
                "syncon": 72504,
                "type": "VER"
            },
            {
                "atoms": [
                    {
                        "end": 85,
                        "lemma": "Jordan",
                        "start": 79,
                        "type": "NPR.NPH"
                    }
                ],
                "dependency": {
                    "head": 16,
                    "id": 13,
                    "label": "nmod"
                },
                "end": 85,
                "lemma": "Michael Jordan",
                "morphology": "Gender=Masc|Number=Sing",
                "paragraph": 0,
                "phrase": 6,
                "pos": "PROPN",
                "sentence": 1,
                "start": 79,
                "syncon": -1,
                "type": "NPR.NPH",
                "vsyn": {
                    "id": -436162,
                    "parent": 73282
                }
            },
            {
                "dependency": {
                    "head": 13,
                    "id": 14,
                    "label": "case"
                },
                "end": 87,
                "lemma": "'s",
                "paragraph": 0,
                "phrase": 6,
                "pos": "PART",
                "sentence": 1,
                "start": 85,
                "syncon": -1,
                "type": "PNT"
            },
            {
                "atoms": [
                    {
                        "end": 93,
                        "lemma": "stand",
                        "start": 88,
                        "type": "NOU"
                    },
                    {
                        "end": 94,
                        "lemma": "-",
                        "start": 93,
                        "type": "PNT"
                    },
                    {
                        "end": 97,
                        "lemma": "out",
                        "start": 94,
                        "type": "NOU"
                    }
                ],
                "dependency": {
                    "head": 16,
                    "id": 15,
                    "label": "compound"
                },
                "end": 97,
                "lemma": "stand-out",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 6,
                "pos": "NOUN",
                "sentence": 1,
                "start": 88,
                "syncon": 111950,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 16,
                    "label": "root"
                },
                "end": 103,
                "lemma": "skill",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 6,
                "pos": "NOUN",
                "sentence": 1,
                "start": 98,
                "syncon": 25683,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 17,
                    "label": "punct"
                },
                "end": 104,
                "lemma": ",",
                "paragraph": 0,
                "phrase": 7,
                "pos": "PUNCT",
                "sentence": 1,
                "start": 103,
                "syncon": -1,
                "type": "PNT"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 18,
                    "label": "cc"
                },
                "end": 108,
                "lemma": "but",
                "paragraph": 0,
                "phrase": 8,
                "pos": "CCONJ",
                "sentence": 1,
                "start": 105,
                "syncon": 160458,
                "type": "CON"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 19,
                    "label": "nsubj"
                },
                "end": 111,
                "lemma": "Michael Jordan",
                "morphology": "Gender=Masc|Number=Sing|PronType=Prs|Case=Nom|Person=3",
                "paragraph": 0,
                "phrase": 9,
                "pos": "PRON",
                "sentence": 1,
                "start": 109,
                "syncon": -1,
                "type": "PRO",
                "vsyn": {
                    "id": -436162,
                    "parent": 73282
                }
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 20,
                    "label": "advmod"
                },
                "end": 117,
                "lemma": "still",
                "paragraph": 0,
                "phrase": 10,
                "pos": "ADV",
                "sentence": 1,
                "start": 112,
                "syncon": 157871,
                "type": "ADV"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 21,
                    "label": "conj"
                },
                "end": 123,
                "lemma": "hold",
                "morphology": "Mood=Ind|Number=Sing|Person=3|Tense=Pres|VerbForm=Fin",
                "paragraph": 0,
                "phrase": 10,
                "pos": "VERB",
                "sentence": 1,
                "start": 118,
                "syncon": 72760,
                "type": "VER"
            },
            {
                "dependency": {
                    "head": 25,
                    "id": 22,
                    "label": "det"
                },
                "end": 125,
                "lemma": "a",
                "morphology": "Definite=Ind|PronType=Art",
                "paragraph": 0,
                "phrase": 11,
                "pos": "DET",
                "sentence": 1,
                "start": 124,
                "syncon": -1,
                "type": "ART"
            },
            {
                "dependency": {
                    "head": 25,
                    "id": 23,
                    "label": "amod"
                },
                "end": 135,
                "lemma": "defensive",
                "paragraph": 0,
                "phrase": 11,
                "pos": "ADJ",
                "sentence": 1,
                "start": 126,
                "syncon": 220448,
                "type": "ADJ"
            },
            {
                "dependency": {
                    "head": 25,
                    "id": 24,
                    "label": "compound"
                },
                "end": 139,
                "lemma": "National Basketball Association",
                "paragraph": 0,
                "phrase": 11,
                "pos": "PROPN",
                "sentence": 1,
                "start": 136,
                "syncon": 206693,
                "type": "NPR.ORG"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 25,
                    "label": "obj"
                },
                "end": 146,
                "lemma": "record",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 11,
                "pos": "NOUN",
                "sentence": 1,
                "start": 140,
                "syncon": 102,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 26,
                    "label": "punct"
                },
                "end": 147,
                "lemma": ",",
                "paragraph": 0,
                "phrase": 12,
                "pos": "PUNCT",
                "sentence": 1,
                "start": 146,
                "syncon": -1,
                "type": "PNT"
            },
            {
                "dependency": {
                    "head": 29,
                    "id": 27,
                    "label": "case"
                },
                "end": 152,
                "lemma": "with",
                "paragraph": 0,
                "phrase": 13,
                "pos": "ADP",
                "sentence": 1,
                "start": 148,
                "syncon": -1,
                "type": "PRE"
            },
            {
                "dependency": {
                    "head": 29,
                    "id": 28,
                    "label": "nummod"
                },
                "end": 158,
                "lemma": "eight",
                "morphology": "NumType=Card",
                "paragraph": 0,
                "phrase": 13,
                "pos": "NUM",
                "sentence": 1,
                "start": 153,
                "syncon": -1,
                "type": "ADJ"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 29,
                    "label": "obl"
                },
                "end": 165,
                "lemma": "steal",
                "morphology": "Number=Plur",
                "paragraph": 0,
                "phrase": 13,
                "pos": "NOUN",
                "sentence": 1,
                "start": 159,
                "syncon": 54375,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 32,
                    "id": 30,
                    "label": "case"
                },
                "end": 168,
                "lemma": "in",
                "paragraph": 0,
                "phrase": 14,
                "pos": "ADP",
                "sentence": 1,
                "start": 166,
                "syncon": -1,
                "type": "PRE"
            },
            {
                "dependency": {
                    "head": 32,
                    "id": 31,
                    "label": "det"
                },
                "end": 170,
                "lemma": "a",
                "morphology": "Definite=Ind|PronType=Art",
                "paragraph": 0,
                "phrase": 14,
                "pos": "DET",
                "sentence": 1,
                "start": 169,
                "syncon": -1,
                "type": "ART"
            },
            {
                "dependency": {
                    "head": 21,
                    "id": 32,
                    "label": "obl"
                },
                "end": 175,
                "lemma": "half",
                "morphology": "Number=Sing",
                "paragraph": 0,
                "phrase": 14,
                "pos": "NOUN",
                "sentence": 1,
                "start": 171,
                "syncon": 56504,
                "type": "NOU"
            },
            {
                "dependency": {
                    "head": 16,
                    "id": 33,
                    "label": "punct"
                },
                "end": 176,
                "lemma": ".",
                "paragraph": 0,
                "phrase": 15,
                "pos": "PUNCT",
                "sentence": 1,
                "start": 175,
                "syncon": -1,
                "type": "PNT"
            }
        ],
        "version": "sensei: 3.1.0; disambiguator: 15.0-QNTX-2016"
    },
    "success": true
}