Skip to content

Commit

Permalink
opm
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Sep 5, 2024
1 parent 836662d commit 2bdf9d2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions pronomial/opm.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from ovos_plugin_manager.coreference import CoreferenceSolverEngine

import pronomial


class PronomialCoreferenceSolver(CoreferenceSolverEngine):
@classmethod
def solve_corefs(cls, text, lang="en"):
return pronomial.replace_corefs(text, lang=lang)
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
from setuptools import setup


PLUGIN_ENTRY_POINT = 'ovos-coref-plugin-pronomial=pronomial.opm:PronomialCoreferenceSolver'

setup(
name='pronomial',
version='0.0.8',
version='0.1.0',
packages=['pronomial', 'pronomial.lang'],
url='https://github.com/OpenJarbas/pronomial',
license='apache-2.0',
author='jarbasAi',
install_requires=["nltk", "pytest", "quebra_frases"],
include_package_data=True,
author_email='[email protected]',
description='pronomial postag/word_gender based coreference solver'
description='pronomial postag/word_gender based coreference solver',
entry_points={'intentbox.coreference': PLUGIN_ENTRY_POINT}
)

0 comments on commit 2bdf9d2

Please sign in to comment.