Created
          November 26, 2019 12:14 
        
      - 
      
- 
        Save ggteixeira/f9a05c0a3fb95afb02f402d22221b066 to your computer and use it in GitHub Desktop. 
    "O menino chutou a bola" em Python
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # O menino | |
| D = "o" | |
| N = "menino" | |
| N_linha = N | |
| NP = N_linha | |
| D_linha = D, NP | |
| DP = D_linha | |
| # A bola | |
| N2 = "bola" | |
| N2_linha = N2 | |
| NP2 = N2_linha | |
| D2 = "a" | |
| D2_linha = D2, NP2 | |
| DP2 = D2_linha | |
| # Chut- | |
| V = "chut" | |
| V_linha = V, DP2 | |
| VP = DP, V_linha | |
| VP_SS = V | |
| # -ou | |
| I = "ou" | |
| I_linha = I, VP | |
| IP = I_linha | |
| # print(IP) | |
| if(len(V) != 0): # Se houver uma string não vazia na variável V(erb). | |
| VP_SS = (V + I) # Então o VP( Verb Phrase) da SS (Surface Structure) é o núcleo do VP + o núcleo do IP na SS. | |
| print(DP, VP_SS, DP2) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment