Methods and systems for generation of a translatable sentence syntax in a social networking system
First Claim
1. A method, comprising:
- accessing a part of a social graph, wherein the part of the social graph comprises an actor node and a target node corresponding to actor and target entities respectively within a social networking system and an edge connecting the actor and target nodes corresponding to an action or relationship between the actor and target entities; and
generating an internationalized sentence syntax representing an expression of the action or relationship comprising;
an actor element corresponding to the actor node;
a target element corresponding to the target node;
an edge element corresponding to the edge connecting the actor and target nodes; and
a token structure that includes one or more tokens identifying one or more social graph attributes, the one or more social graph attributes related to the actor element, the target element, the edge element or to an intended viewer of the expression of the action or relationship;
wherein one of the one or more tokens is associated with the actor element of the internationalized sentence syntax and identifies a gender as the corresponding social graph attribute;
generating an expression of the action or relationship into an output language from the internationalized sentence syntax by;
identifying one or more edges or nodes of the social graph that correspond to the actor element, the target element and the edge element;
matching each of the one or more tokens in the token structure of the internationalized sentence syntax with an attribute of the identified edges or nodes; and
generating the expression of the action or relationship in the output language based on the identified nodes, edges and attributes;
wherein identifying one or more attributes comprises identifying a gender value associated with a node of the social graph; and
wherein the generating the expression of the action or relationship in the output language is based on the identified gender value.
1 Assignment
0 Petitions
Accused Products
Abstract
Sentence internationalization methods and systems are disclosed. The method may include: providing a developer interface to define an internationalized sentence syntax for an application on a social networking system, the internationalized sentence syntax for translating a natural language expression of a social graph edge of the social networking system; providing a sentence option on the developer interface to define grammar of the internationalized sentence syntax; generating a token structure including a language token to assist translation of the internationalized sentence syntax into a preferred language indicated by the language token, the token structure customizable via the developer interface to configure translation options; associating a social graph attribute with a first token of the token structure; and storing the sentence option and the token structure with the internationalized sentence syntax to facilitate run-time translation of the internationalized sentence syntax into the natural language expression in the preferred language.
-
Citations
15 Claims
-
1. A method, comprising:
-
accessing a part of a social graph, wherein the part of the social graph comprises an actor node and a target node corresponding to actor and target entities respectively within a social networking system and an edge connecting the actor and target nodes corresponding to an action or relationship between the actor and target entities; and generating an internationalized sentence syntax representing an expression of the action or relationship comprising; an actor element corresponding to the actor node; a target element corresponding to the target node; an edge element corresponding to the edge connecting the actor and target nodes; and a token structure that includes one or more tokens identifying one or more social graph attributes, the one or more social graph attributes related to the actor element, the target element, the edge element or to an intended viewer of the expression of the action or relationship; wherein one of the one or more tokens is associated with the actor element of the internationalized sentence syntax and identifies a gender as the corresponding social graph attribute; generating an expression of the action or relationship into an output language from the internationalized sentence syntax by; identifying one or more edges or nodes of the social graph that correspond to the actor element, the target element and the edge element; matching each of the one or more tokens in the token structure of the internationalized sentence syntax with an attribute of the identified edges or nodes; and generating the expression of the action or relationship in the output language based on the identified nodes, edges and attributes; wherein identifying one or more attributes comprises identifying a gender value associated with a node of the social graph; and wherein the generating the expression of the action or relationship in the output language is based on the identified gender value. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A non-transitory computer-readable storage medium storing instructions that, when executed by a computing system, cause the computing system to perform operations comprising:
-
generating an internationalized sentence syntax comprising; an actor element; a target element; an edge element representing an action or relationship between the actor element and the target element; and a token structure including one or more tokens identifying one or more social graph attributes, the one or more social graph attributes related to the actor element, the target element, the edge element, or to an intended viewer of the expression of the action relationship; wherein one of the one or more tokens is associated with the actor element of the internationalized sentence syntax and identifies a gender as the corresponding social graph attribute; generating an expression of the action or relationship into an output language from the internationalized sentence syntax by; identifying one or more edges or nodes of the social graph that correspond to the elements of internationalized sentence syntax; matching each of the one or more tokens in the token structure of the internationalized sentence syntax with an attribute of the identified edges or nodes; and generating the expression of the action relationship in the output language based on the identified nodes, edges and attributes; wherein identifying one or more attributes comprises identifying a gender value associated with a node of the social graph; and wherein the generating the expression of the action or relationship in the output language is based on the identified gender value will. - View Dependent Claims (10, 11, 12, 13)
-
-
14. A system comprising:
-
one or more processors; and a memory storing instructions that, when executed by a computing system, cause the computing system to perform operations that generate an internationalized sentence syntax comprising; an actor element; a target element; an edge element representing an action or relationship between the actor element and the target element; and a token structure including one or more tokens identifying one or more social graph attributes, the one or more social graph attributes related to the actor element, the target element, the edge element or to an intended viewer of the expression of the action relationship; wherein one of the one or more tokens is associated with the actor element of the internationalized sentence syntax and identifies a gender as the corresponding social graph attribute; wherein the internationalized sentence syntax is used to generate an expression of the action or relationship into an output language by; identifying one or more edges or nodes of the social graph that correspond to the internationalized sentence syntax; matching each of the one or more tokens in the token structure of the internationalized sentence syntax with an attribute of the identified edges or nodes; and generating the expression of the action relationship in the output language based on the identified nodes, edges and attributes wherein identifying one or more attributes comprises identifying a gender value associated with a node of the social graph; and wherein the generating expression of the action or relationship in the output language is based on the identified gender value. - View Dependent Claims (15)
-
Specification