This commit is contained in:
Felix Hamborg
2018-07-04 14:19:43 +02:00
parent 1e46d295cc
commit e2ffdea115
2 changed files with 1 additions and 95 deletions

View File

@@ -106,7 +106,7 @@ Giveme5W can read and write only in a JSON format [example](https://github.com/f
> dID is used for matching input and output, not the filename!
There is an easy-to-use handler to work with files; these are all options::
``` python
```python
documents = (
# initiate the file handler with the input directory
Handler(inputPath)

View File

@@ -1,94 +0,0 @@
{
"who": {
"annotated": [
{
"text": "Several people"
},
{
"text": "dozens injured"
}
],
"label": "who",
"extracted": [
{
"parts": [
[
{
"nlpToken": {
"index": 8,
"word": "Croydon",
"originalText": "Croydon",
"lemma": "Croydon",
"characterOffsetBegin": 3148,
"characterOffsetEnd": 3155,
"pos": "NNP",
"ner": "LOCATION",
"speaker": "PER0",
"before": " ",
"after": " "
},
"aida": [
{
"mention": {
"allEntities": [
{
"kbIdentifier": "YAGO:Croydon",
"disambiguationScore": "0.23577"
}
],
"offset": 3148,
"name": "Croydon",
"length": 7,
"bestEntity": {
"kbIdentifier": "YAGO:Croydon",
"disambiguationScore": "0.23577"
}
},
"bestEntityMetadata": {
"knowledgebase": "YAGO",
"depictionurl": "http://upload.wikimedia.org/wikipedia/commons/0/08/Croydon_Town_Hall_-_geograph.org.uk_-_432983.jpg",
"depictionthumbnailurl": "http://upload.wikimedia.org/wikipedia/commons/thumbCroydon_Town_Hall_-_geograph.org.uk_-_432983.jpg/200px-Croydon_Town_Hall_-_geograph.org.uk_-_432983.jpg",
"importance": 0.0007512499244432548,
"entityId": "Croydon",
"type": [
"YAGO_wordnet_district_108552138",
"YAGO_yagoPermanentlyLocatedEntity",
"YAGO_yagoLegalActorGeo",
"YAGO_wordnet_medium_106254669",
"YAGO_wordnet_urban_area_108675967",
"YAGO_wikicategory_Market_towns_in_Surrey",
"YAGO_wordnet_municipality_108626283",
"YAGO_wordnet_instrumentality_103575240",
"YAGO_wordnet_market_town_108672073",
"YAGO_wikicategory_locations",
"YAGO_wikicategory_Districts_of_London_listed_in_the_Domesday_Book",
"YAGO_wordnet_region_108630985",
"YAGO_yagoGeoEntity",
"YAGO_wordnet_physical_entity_100001930",
"YAGO_wikicategory_Districts_of_Croydon",
"YAGO_wikicategory_Post_towns_in_the_CR_postcode_area",
"YAGO_wordnet_entity_100001740",
"YAGO_wordnet_object_100002684",
"YAGO_wordnet_area_108497294",
"YAGO_wordnet_geographical_area_108574314",
"YAGO_wikicategory_Areas_of_London",
"YAGO_wikicategory_Market_towns_in_London",
"YAGO_wordnet_location_100027167",
"YAGO_wordnet_whole_100003553",
"YAGO_wikicategory_Media_and_communications_in_Croydon",
"YAGO_wordnet_artifact_100021939",
"YAGO_wordnet_administrative_district_108491826",
"YAGO_wordnet_town_108665504"
],
"readableRepr": "Croydon",
"url": "http://en.wikipedia.org/wiki/Croydon"
}
}
]
},
"NNP"
],
"score": 1.0,
"text": "Croydon MPS ( @MPSCroydon ) November 9 , 201 \" There",
"nlpIndexSentence": 21
}