Last active
April 5, 2021 19:40
-
-
Save avriiil/131a812e38075dac12c90ce92a7a5efe to your computer and use it in GitHub Desktop.
Run a morphological analysis on a single Arabic word
This file contains 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
from camel_tools.morphology.database import MorphologyDB | |
from camel_tools.morphology.analyzer import Analyzer | |
db = MorphologyDB.builtin_db() | |
analyzer = Analyzer(db) | |
analyses = analyzer.analyze('وبعقدنا') | |
for analysis in analyses: | |
print(analysis, '\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment