carpedm20 / carpedm20/paper-notes

《Neural Symbolic Machines》Discussion: What are the input and target for the neural net ?

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
55
Forks
6
PR merge metrics
No merged PRs in 30d

Description

https://github.com/carpedm20/paper-notes/blob/master/notes/neural-symbolic-machine.md

![image](https://user-images.githubusercontent.com/4702353/36824435-3ff86cbc-1d3d-11e8-9eb5-802c3a255387.png)

From the picture of paper, we find that argmax operation is in the target.
But the WEBQUESTIONSSP dataset is like this:
```
{
"QuestionId": "WebQTrn-2632",
"RawQuestion": "what city has the largest population in mexico?",
"ProcessedQuestion": "what city has the largest population in mexico",
"Parses": [
{
"ParseId": "WebQTrn-2632.P0",
"AnnotatorId": 2,
"AnnotatorComment": {
"ParseQuality": "Complete",
"QuestionQuality": "Good",
"Confidence": "Normal",
"FreeFormComment": "can't do max after selecting \"city\""
},
"Sparql": "PREFIX ns: \nSELECT DISTINCT ?x\nWHERE {\nFILTER (?x != ns:m.0b90_r)\nFILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))\nns:m.0b90_r ns:location.location.contains ?x .\n?x ns:common.topic.notable_types ns:m.01m9 .\n?x ns:topic_server.population_number ?sk0 .\n}\nORDER BY DESC(xsd:float(?sk0))\nLIMIT 1\n",
"PotentialTopicEntityMention": "mexico",
"TopicEntityName": "Mexico",
"TopicEntityMid": "m.0b90_r",
"InferentialChain": [
"location.location.contains"
],
"Constraints": [
{
"Operator": "Equal",
"ArgumentType": "Entity",
"Argument": "m.01m9",
"EntityName": "City/Town/Village",
"SourceNodeIndex": 0,
"NodePredicate": "common.topic.notable_types",
"ValueType": "String"
}
],
"Time": null,
"Order": {
"SortOrder": "Descending",
"Start": 0,
"Count": 1,
"SourceNodeIndex": 0,
"NodePredicate": "topic_server.population_number",
"ValueType": "Number"
},
"Answers": [
{
"AnswerType": "Entity",
"AnswerArgument": "m.04sqj",
"EntityName": "Mexico City"
}
]
}
]
},
```
@carpedm20 Thank you.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.