Fleet  0.0.9
Inference in the LOT
Classes | Enumerations | Functions | Variables
BindingTree.h File Reference

A tree stores sentences that we use here. You provide S-expressions like "(S (NP he.1) (VP (V saw)) (NP >himself.1))" Here each string and part of speech (S, NP, he, saw, etc.) is stored as a "label". More...

#include <string>
#include <vector>
#include <assert.h>
#include <set>
#include <map>
#include <functional>
#include "BaseNode.h"
Include dependency graph for BindingTree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BindingTree
 

Enumerations

enum  POS {
  POS::None, POS::S, POS::SBAR, POS::NP,
  POS::NPS, POS::NPO, POS::NPPOSS, POS::VP,
  POS::MD, POS::PP, POS::CP, POS::CC,
  POS::N, POS::V, POS::P, POS::A
}
 

Functions

std::string str (BindingTree *t)
 

Variables

std::map< std::string, POSposmap
 

Detailed Description

A tree stores sentences that we use here. You provide S-expressions like "(S (NP he.1) (VP (V saw)) (NP >himself.1))" Here each string and part of speech (S, NP, he, saw, etc.) is stored as a "label".

Enumeration Type Documentation

◆ POS

enum POS
strong
Enumerator
None 
SBAR 
NP 
NPS 
NPO 
NPPOSS 
VP 
MD 
PP 
CP 
CC 

Function Documentation

◆ str()

std::string str ( BindingTree t)

Variable Documentation

◆ posmap

std::map<std::string,POS> posmap
Initial value:
= {
{"S", POS::S},
{"NP", POS::NP},
{"NP-S", POS::NPS},
{"NP-O", POS::NPO},
{"VP", POS::VP},
{"PP", POS::PP},
{"CP", POS::CP},
{"CC", POS::CC},
{"SBAR", POS::SBAR},
{"MD", POS::MD},
{"N", POS::N},
{"V", POS::V},
{"P", POS::P},
{"A", POS::A},
{"NP-POSS", POS::NPPOSS},
}