-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathattrs.h
More file actions
73 lines (64 loc) · 1.42 KB
/
attrs.h
File metadata and controls
73 lines (64 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// attrs.h
//
// URL: https://github.com/d99kris/spacy-cpp
//
// Copyright (C) 2017 Kristofer Berggren
// All rights reserved.
//
// spacy-cpp is distributed under the MIT license, see LICENSE for details.
#pragma once
#include "pyobjectptr.h"
namespace Spacy
{
class Spacy;
class Attrs
{
friend Spacy;
public:
virtual ~Attrs();
long IS_ALPHA() const;
long IS_ASCII() const;
long IS_DIGIT() const;
long IS_LOWER() const;
long IS_PUNCT() const;
long IS_SPACE() const;
long IS_TITLE() const;
long IS_UPPER() const;
long LIKE_URL() const;
long LIKE_NUM() const;
long LIKE_EMAIL() const;
long IS_STOP() const;
long IS_OOV() const;
long IS_BRACKET() const;
long IS_QUOTE() const;
long IS_LEFT_PUNCT() const;
long IS_RIGHT_PUNCT() const;
long ID() const;
long ORTH() const;
long LOWER() const;
long NORM() const;
long SHAPE() const;
long PREFIX() const;
long SUFFIX() const;
long LENGTH() const;
long CLUSTER() const;
long LEMMA() const;
long POS() const;
long TAG() const;
long DEP() const;
long ENT_IOB() const;
long ENT_TYPE() const;
long HEAD() const;
long SENT_START() const;
long SPACY() const;
long PROB() const;
long LANG() const;
private:
explicit Attrs(PyObjectPtr p_attrs);
private:
PyObjectPtr m_attrs;
};
}
#ifdef SPACY_HEADER_ONLY
#include "attrs.cpp"
#endif