Skip to content

sentence segmentation error #592

@jmugan

Description

@jmugan

I know that sentence segmentation is more difficult than it appears, but this looks like an error that spaCy might want to know about. Or if there is something I am doing wrong, it would be good for me to know :)

text = "He has a Ph.D. in tacology."
tokens = parser(text)
for sent in tokens.sents:
    print("Sentence:")
    print(sent)
    print()

results in

Sentence:
He has a Ph.

Sentence:
D. in tacology.

In Python 3.5, spaCy version 1.1.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions